mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Merge branch 'master' of https://github.com/antares-sql/antares into beta
This commit is contained in:
@ -31,10 +31,10 @@ parts:
|
|||||||
fi
|
fi
|
||||||
# Get the latest releases json
|
# Get the latest releases json
|
||||||
echo "Get GitHub releases..."
|
echo "Get GitHub releases..."
|
||||||
wget --quiet https://api.github.com/repos/fabio286/antares/releases/latest -O releases.json
|
wget --quiet https://api.github.com/repos/fabio286/antares/releases -O releases.json
|
||||||
# Get the version from the tag_name and the download URL.
|
# Get the version from the tag_name and the download URL.
|
||||||
VERSION=$(jq . releases.json | grep tag_name | cut -d'"' -f4 | sed s'/release-//')
|
VERSION=$(jq . releases.json | grep tag_name | head -1 | cut -d'"' -f4 | sed s'/release-//')
|
||||||
DEB_URL=$(cat releases.json | jq -r ".assets[] | select(.name | test(\"${FILTER}\")) | .browser_download_url")
|
DEB_URL=$(cat releases.json | jq -r ".[0].assets[] | select(.name | test(\"${FILTER}\")) | .browser_download_url")
|
||||||
DEB=$(basename "${DEB_URL}")
|
DEB=$(basename "${DEB_URL}")
|
||||||
echo "Downloading ${DEB_URL}..."
|
echo "Downloading ${DEB_URL}..."
|
||||||
wget --quiet "${DEB_URL}" -O "${SNAPCRAFT_PART_INSTALL}/${DEB}"
|
wget --quiet "${DEB_URL}" -O "${SNAPCRAFT_PART_INSTALL}/${DEB}"
|
||||||
|
Reference in New Issue
Block a user