mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-09-11 06:45:28 +03:00
build(linux): update snap version [skip ci]
This commit is contained in:
parent
d7c458fbb3
commit
6f7b5f7e5b
11
.github/workflows/insider-linux.yml
vendored
11
.github/workflows/insider-linux.yml
vendored
@ -419,10 +419,9 @@ jobs:
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
isClassic: 'true'
|
||||
|
||||
- uses: snapcore/action-publish@master
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
|
||||
- uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
release: stable
|
||||
if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
|
||||
repo_name: ${{ env.ASSETS_REPOSITORY }}
|
||||
repo_token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
file: ${{ steps.build.outputs.snap }}
|
||||
tag: ${{ env.RELEASE_VERSION }}
|
||||
|
@ -16,8 +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)|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_URL=$( jq -r 'map(select(.tag_name == "'"${RELEASE_VERSION}"'"))|first.assets[].browser_download_url|select(endswith("'"_${SNAPCRAFT_TARGET_ARCH}.deb"'"))' latest.json )
|
||||
DEB_NAME=$( basename "${DEB_URL}" )
|
||||
# Downloading .deb
|
||||
wget "${DEB_URL}" -O "${SNAPCRAFT_PART_INSTALL}/${DEB_NAME}"
|
||||
@ -27,7 +26,7 @@ parts:
|
||||
rm -f latest.json
|
||||
rm -f "${SNAPCRAFT_PART_INSTALL}/${DEB_NAME}"
|
||||
# Set version
|
||||
snapcraftctl set-version "${VERSION}"
|
||||
snapcraftctl set-version "${RELEASE_VERSION/-*/}"
|
||||
# Prepare GUI
|
||||
mkdir -p "${SNAPCRAFT_PART_INSTALL}/meta/gui"
|
||||
cp "${SNAPCRAFT_PART_INSTALL}/usr/share/codium-insiders/resources/app/resources/linux/code.png" "${SNAPCRAFT_PART_INSTALL}/meta/gui/codium-insiders.png"
|
||||
@ -93,13 +92,17 @@ parts:
|
||||
source: snap/local/bin
|
||||
|
||||
mesa-patchelf:
|
||||
after:
|
||||
- electron-launch
|
||||
plugin: nil
|
||||
stage-packages:
|
||||
- libgl1-mesa-dri
|
||||
- libgl1-mesa-dri
|
||||
stage:
|
||||
- -usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri
|
||||
|
||||
mesa-no-patchelf:
|
||||
after:
|
||||
- electron-launch
|
||||
plugin: nil
|
||||
stage-packages:
|
||||
- libgl1-mesa-dri
|
||||
|
Loading…
Reference in New Issue
Block a user