mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 17:04:12 +03:00
fix(snap): build
This commit is contained in:
parent
3465153c6e
commit
3f66ba03df
22
.github/workflows/insider-linux.yml
vendored
22
.github/workflows/insider-linux.yml
vendored
@ -244,25 +244,25 @@ jobs:
|
|||||||
run: ./stores/snapcraft/build.sh
|
run: ./stores/snapcraft/build.sh
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
# - uses: diddlesnaps/snapcraft-multiarch-action@v1
|
- uses: diddlesnaps/snapcraft-multiarch-action@v1
|
||||||
# with:
|
|
||||||
# path: stores/snapcraft/out
|
|
||||||
# architecture: ${{ matrix.platform }}
|
|
||||||
# id: build
|
|
||||||
# if: env.SHOULD_BUILD == 'yes'
|
|
||||||
|
|
||||||
- uses: snapcore/action-build@v1
|
|
||||||
with:
|
with:
|
||||||
path: stores/snapcraft/out
|
path: stores/snapcraft/out
|
||||||
|
architecture: ${{ matrix.platform }}
|
||||||
id: build
|
id: build
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
# - uses: diddlesnaps/snapcraft-review-action@v1
|
# - uses: snapcore/action-build@v1
|
||||||
# with:
|
# with:
|
||||||
# snap: ${{ steps.build.outputs.snap }}
|
# path: stores/snapcraft/out
|
||||||
# isClassic: 'true'
|
# id: build
|
||||||
# if: env.SHOULD_BUILD == 'yes'
|
# if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- uses: diddlesnaps/snapcraft-review-action@v1
|
||||||
|
with:
|
||||||
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
|
isClassic: 'true'
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
- uses: svenstaro/upload-release-action@v2
|
- uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_name: ${{ env.ASSETS_REPOSITORY }}
|
repo_name: ${{ env.ASSETS_REPOSITORY }}
|
||||||
|
@ -139,6 +139,10 @@ else
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
if [[ "${CI_BUILD}" == "no" ]]; then
|
||||||
|
. ./stores/snapcraft/build.sh
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${SHOULD_BUILD_TAR}" != "no" ]]; then
|
if [[ "${SHOULD_BUILD_TAR}" != "no" ]]; then
|
||||||
echo "Building and moving TAR"
|
echo "Building and moving TAR"
|
||||||
cd "VSCode-linux-${VSCODE_ARCH}"
|
cd "VSCode-linux-${VSCODE_ARCH}"
|
||||||
|
@ -20,7 +20,7 @@ rm -rf build
|
|||||||
mkdir -p build/snap/gui
|
mkdir -p build/snap/gui
|
||||||
|
|
||||||
if [[ "${CI_BUILD}" == "no" ]]; then
|
if [[ "${CI_BUILD}" == "no" ]]; then
|
||||||
DEB_ARCHIVE=$( ls ../../vscode/build/linux/deb/amd64/deb/*.deb )
|
DEB_ARCHIVE=$( ls ../../vscode/.build/linux/deb/amd64/deb/*.deb )
|
||||||
else
|
else
|
||||||
# Get GitHub releases
|
# Get GitHub releases
|
||||||
wget --quiet "https://api.github.com/repos/${ASSETS_REPOSITORY}/releases" -O gh_latest.json
|
wget --quiet "https://api.github.com/repos/${ASSETS_REPOSITORY}/releases" -O gh_latest.json
|
||||||
@ -37,8 +37,8 @@ fi
|
|||||||
# Unpacking .deb
|
# Unpacking .deb
|
||||||
dpkg -x "${DEB_ARCHIVE}" build/deb
|
dpkg -x "${DEB_ARCHIVE}" build/deb
|
||||||
|
|
||||||
mkdir -p build/snap/usr/share
|
mkdir -p build/snap/local/usr/share
|
||||||
mv "build/deb/usr/share/${BINARY_NAME}" "build/snap/usr/share/${BINARY_NAME}"
|
mv "build/deb/usr/share/${BINARY_NAME}" "build/snap/local/usr/share/${BINARY_NAME}"
|
||||||
|
|
||||||
# Prepare snapcraft.yaml
|
# Prepare snapcraft.yaml
|
||||||
cp ${VSCODE_QUALITY}/snapcraft.yaml build/snap/snapcraft.yaml
|
cp ${VSCODE_QUALITY}/snapcraft.yaml build/snap/snapcraft.yaml
|
||||||
@ -47,7 +47,7 @@ replace "s|@@SNAP_NAME@@|${BINARY_NAME}|g" build/snap/snapcraft.yaml
|
|||||||
replace "s|@@SNAP_VERSION@@|${SNAP_VERSION}|g" build/snap/snapcraft.yaml
|
replace "s|@@SNAP_VERSION@@|${SNAP_VERSION}|g" build/snap/snapcraft.yaml
|
||||||
|
|
||||||
# Prepare electron-launch
|
# Prepare electron-launch
|
||||||
cp ${VSCODE_QUALITY}/electron-launch build/snap/electron-launch
|
cp ${VSCODE_QUALITY}/electron-launch build/electron-launch
|
||||||
|
|
||||||
# Prepare GUI
|
# Prepare GUI
|
||||||
cp "../../src/${VSCODE_QUALITY}/resources/linux/code.png" "build/snap/gui/${BINARY_NAME}.png"
|
cp "../../src/${VSCODE_QUALITY}/resources/linux/code.png" "build/snap/gui/${BINARY_NAME}.png"
|
||||||
|
@ -55,7 +55,7 @@ parts:
|
|||||||
- patchelf
|
- patchelf
|
||||||
override-build: |
|
override-build: |
|
||||||
snapcraftctl build
|
snapcraftctl build
|
||||||
patchelf --force-rpath --set-rpath '$ORIGIN/../../lib/x86_64-linux-gnu:$ORIGIN:/snap/core20/current/lib/x86_64-linux-gnu' $SNAPCRAFT_PART_INSTALL/snap/usr/share/@@SNAP_NAME@@/chrome_crashpad_handler
|
patchelf --force-rpath --set-rpath '$ORIGIN/../../lib/x86_64-linux-gnu:$ORIGIN:/core20/current/lib/x86_64-linux-gnu' $SNAPCRAFT_PART_INSTALL/snap/usr/share/@@SNAP_NAME@@/chrome_crashpad_handler
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
after:
|
after:
|
||||||
|
Loading…
Reference in New Issue
Block a user