mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
fix(snap): remove suffix when sorting [skip ci]
This commit is contained in:
@@ -16,7 +16,7 @@ parts:
|
||||
set -eu
|
||||
# Get .deb url
|
||||
wget --quiet https://api.github.com/repos/VSCodium/vscodium-insiders/releases -O latest.json
|
||||
VERSION=$( jq -r 'sort_by(.tag_name|split(".")|map(tonumber))|last.tag_name' latest.json )
|
||||
VERSION=$( jq -r 'sort_by(.tag_name|split("-")[0]|split(".")|map(tonumber))|last.tag_name' latest.json )
|
||||
DEB_URL=$( jq -r 'map(select(.tag_name == "'"${VERSION}"'"))|first.assets[].browser_download_url|select(endswith("'"_${SNAPCRAFT_TARGET_ARCH}.deb"'"))' latest.json )
|
||||
DEB_NAME=$( basename "${DEB_URL}" )
|
||||
# Downloading .deb
|
||||
|
||||
Reference in New Issue
Block a user