build(linux): reorganizing appimage build (#831)

This commit is contained in:
Baptiste Augrain 2021-09-09 10:18:22 +02:00 committed by GitHub
parent f1dd2cf1cc
commit a8964122dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 12 deletions

View file

@ -85,12 +85,15 @@ jobs:
cd VSCode-linux-${VSCODE_ARCH}
tar czf ../VSCodium-linux-${VSCODE_ARCH}-${MS_TAG}.tar.gz .
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
- name: Move/rename build artifacts
run: |
cp -f out/*.AppImage* .
cp -f vscode/.build/linux/deb/*/deb/*.deb .
cp -f vscode/.build/linux/rpm/*/*.rpm .
cp vscode/.build/linux/deb/*/deb/*.deb .
cp vscode/.build/linux/rpm/*/*.rpm .
if [[ "${VSCODE_ARCH}" == "x64" ]]; then
cp build/linux/appimage/out/*.AppImage* .
fi
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
- name: Generate shasums

4
.gitignore vendored
View file

@ -1,9 +1,7 @@
vscode
VS*/*
.DS_Store
out
pkg2appimage-*.AppImage
pkg2appimage.AppDir
build/linux/appimage/out
build/windows/msi/releasedir
build/windows/rtf/Readme (Abridged).txt
build/windows/rtf/TXT to RTF Converter.exe

View file

@ -41,7 +41,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
yarn gulp "vscode-linux-${VSCODE_ARCH}-build-deb"
yarn gulp "vscode-linux-${VSCODE_ARCH}-build-rpm"
. ../create_appimage.sh
. ../build/linux/appimage/build.sh
fi
fi

View file

@ -1,6 +1,10 @@
#!/bin/bash
cd ..
set -ex
CALLER_DIR=$( pwd )
cd "$( dirname "${BASH_SOURCE[0]}" )"
if [[ "$VSCODE_ARCH" == "x64" ]]; then
wget -c https://github.com/$(wget -q https://github.com/AppImage/pkg2appimage/releases -O - | grep "pkg2appimage-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
@ -14,7 +18,11 @@ if [[ "$VSCODE_ARCH" == "x64" ]]; then
# remove check so build in docker can succeed
sed -i 's/grep docker/# grep docker/' pkg2appimage.AppDir/usr/share/pkg2appimage/functions.sh
bash -ex pkg2appimage.AppDir/AppRun VSCodium-AppImage-Recipe.yml
bash -ex pkg2appimage.AppDir/AppRun recipe.yml
rm -f pkg2appimage-*.AppImage
rm -rf pkg2appimage.AppDir
rm -rf VSCodium
fi
cd vscode
cd "${CALLER_DIR}"

View file

@ -16,7 +16,7 @@ ingredients:
- deb http://archive.ubuntu.com/ubuntu/ trusty main universe
script:
- pwd
- cp ../vscode/.build/linux/deb/amd64/deb/*.deb .
- cp ../../../../vscode/.build/linux/deb/amd64/deb/*.deb .
- ls codium_*.deb | cut -d _ -f 2 > VERSION
script: