mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-05-28 12:30:18 +02:00
test
This commit is contained in:
parent
9b04db5775
commit
6d70a314a1
@ -14,7 +14,8 @@ FILES_${PN} += "${firmwaredir}/"
|
||||
FILES_${PN} += "${firmwaredir}/cfg"
|
||||
|
||||
REPO_NAME = "artoo"
|
||||
REPO_TAG = "v${PV}"
|
||||
REPO_TAG = "master"
|
||||
#REPO_TAG = "v${PV}"
|
||||
FILE_EXT = "bin"
|
||||
FILE_SRC = "artoo_${PV}.${FILE_EXT}"
|
||||
FILE_DST = "artoo_${PV}.${FILE_EXT}"
|
||||
@ -34,17 +35,20 @@ do_fetch () {
|
||||
|
||||
# There must be a github "personal access token" in the file ~/.ssh/github_token
|
||||
# https://help.github.com/articles/creating-an-access-token-for-command-line-use/
|
||||
TOKEN=$(cat ~/.ssh/github_token)
|
||||
# TOKEN=$(cat ~/.ssh/github_token)
|
||||
|
||||
SRC_URL="https://api.github.com/repos/OpenSolo/${REPO_NAME}/releases/tags/${REPO_TAG}"
|
||||
# SRC_URL="https://api.github.com/repos/OpenSolo/${REPO_NAME}/releases/tags/${REPO_TAG}"
|
||||
|
||||
BIN_URL=$(curl -s -H "Authorization: token ${TOKEN}" -H "Accept: application/json" ${SRC_URL} | jq -r '.assets[] | select(.name | endswith(".${FILE_EXT}")) | .url')
|
||||
# BIN_URL=$(curl -s -H "Authorization: token ${TOKEN}" -H "Accept: application/json" ${SRC_URL} | jq -r '.assets[] | select(.name | endswith(".${FILE_EXT}")) | .url')
|
||||
|
||||
# NB: supply github access token as url param because if we supply it as a header,
|
||||
# once github redirects us to s3, it gets included in that request as well
|
||||
# and amazon complains that 2 forms of auth have been provided and quits.
|
||||
echo 'curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}'
|
||||
curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}
|
||||
# echo 'curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}'
|
||||
# curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}
|
||||
|
||||
# fake it.
|
||||
touch ${WORKDIR}/${FILE_SRC}
|
||||
}
|
||||
|
||||
do_install () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user