create_appimage.sh 678 B

12345678910111213141516171819
  1. #!/bin/bash
  2. cd ..
  3. if [[ "$VSCODE_ARCH" == "x64" ]]; then
  4. # install a dep needed for this process
  5. sudo apt-get install desktop-file-utils
  6. 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)
  7. chmod +x ./pkg2appimage-*.AppImage
  8. ./pkg2appimage-*.AppImage --appimage-extract && mv ./squashfs-root ./pkg2appimage.AppDir
  9. sed -i 's/generate_type2_appimage/generate_type2_appimage -u "gh-releases-zsync|VSCodium|vscodium|latest|*.AppImage.zsync"/' pkg2appimage.AppDir/AppRun
  10. bash -ex pkg2appimage.AppDir/AppRun VSCodium-AppImage-Recipe.yml
  11. fi
  12. cd vscode