2019-04-19 09:30:10 -04:00
|
|
|
#!/bin/bash
|
2021-06-05 19:47:16 -04:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2020-10-16 21:20:13 -04:00
|
|
|
if [[ "$VSCODE_ARCH" == "x64" ]]; then
|
|
|
|
# install a dep needed for this process
|
|
|
|
sudo apt-get install desktop-file-utils
|
|
|
|
|
2021-06-05 19:47:16 -04:00
|
|
|
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)
|
|
|
|
chmod +x ./pkg2appimage-*.AppImage
|
|
|
|
|
|
|
|
./pkg2appimage-*.AppImage --appimage-extract && mv ./squashfs-root ./pkg2appimage.AppDir
|
|
|
|
|
|
|
|
sed -i 's/generate_type2_appimage/generate_type2_appimage -u "gh-releases-zsync|VSCodium|vscodium|latest|*.AppImage.zsync"/' pkg2appimage.AppDir/AppRun
|
|
|
|
|
|
|
|
bash -ex pkg2appimage.AppDir/AppRun VSCodium-AppImage-Recipe.yml
|
2020-10-16 21:20:13 -04:00
|
|
|
fi
|
2021-06-05 19:47:16 -04:00
|
|
|
|
|
|
|
cd vscode
|