fix: updating snapcraft.yaml to latest version (#956)

This commit is contained in:
Baptiste Augrain 2021-12-18 05:17:12 +01:00 committed by GitHub
parent e087f00ff1
commit dfd7ebbf85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 15 deletions

View File

@ -134,5 +134,5 @@ jobs:
with: with:
store_login: ${{ secrets.SNAP_STORE_LOGIN }} store_login: ${{ secrets.SNAP_STORE_LOGIN }}
snap: ${{ steps.build.outputs.snap }} snap: ${{ steps.build.outputs.snap }}
release: stable release: beta
if: env.SHOULD_DEPLOY == 'yes' if: env.SHOULD_DEPLOY == 'yes'

View File

@ -29,47 +29,44 @@ parts:
dpkg -x "${SNAPCRAFT_PART_INSTALL}/${DEB}" ${SNAPCRAFT_PART_INSTALL} dpkg -x "${SNAPCRAFT_PART_INSTALL}/${DEB}" ${SNAPCRAFT_PART_INSTALL}
rm -f latest.json rm -f latest.json
rm -f "${SNAPCRAFT_PART_INSTALL}/${DEB}" rm -f "${SNAPCRAFT_PART_INSTALL}/${DEB}"
# Correct path to icon.
sed -i 's|Icon=codium|Icon=${SNAP}/usr/share/pixmaps/codium.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium.desktop
sed -i 's|Exec=/usr/share/codium/codium|Exec=codium|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium.desktop
sed -i 's|Icon=codium|Icon=/usr/share/pixmaps/codium.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-url-handler.desktop
# Fix ACL
chmod 755 ${SNAPCRAFT_PART_INSTALL}/usr/share/codium/chrome-sandbox
# Set version # Set version
echo $VERSION > $SNAPCRAFT_STAGE/version
snapcraftctl set-version "$VERSION" snapcraftctl set-version "$VERSION"
# Correct path to icon.
sed -i 's|Icon=vscodium|Icon=${SNAP}/usr/share/pixmaps/vscodium.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium.desktop
sed -i 's|Exec=/usr/share/codium/codium|Exec=codium|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium.desktop
sed -i 's|Icon=vscodium|Icon=/usr/share/pixmaps/vscodium.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-url-handler.desktop
build-packages: build-packages:
- dpkg
- jq
- sed
- wget - wget
- jq
stage-packages: stage-packages:
- ibus-gtk3
- fcitx-frontend-gtk3 - fcitx-frontend-gtk3
- gvfs-libs - gvfs-libs
- libasound2 - libasound2
- libgconf-2-4 - libgconf-2-4
- libglib2.0-bin - libglib2.0-bin
- libgnome-keyring0 - libgnome-keyring0
- libgbm1
- libgtk-3-0 - libgtk-3-0
- libxkbfile1
- libnotify4 - libnotify4
- libnspr4 - libnspr4
- libnss3 - libnss3
- libpcre3 - libpcre3
- libpulse0 - libpulse0
- libsecret-1-0 - libsecret-1-0
- libxshmfence1
- libxss1 - libxss1
- libxtst6 - libxtst6
- zlib1g - zlib1g
- libx11-xcb1
- libxkbfile1
- libdrm2
- libgbm1
- libxcb-dri3-0
prime: prime:
- -usr/share/doc - -usr/share/doc
- -usr/share/fonts - -usr/share/fonts
- -usr/share/icons - -usr/share/icons
- -usr/share/lintian - -usr/share/lintian
- -usr/share/man - -usr/share/man
- -usr/share/codium/chrome-sandbox
electron-launch: electron-launch:
after: after: