build.appimage.sh 782 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # Prepare
  3. cd "$(dirname "$BASH_SOURCE")"
  4. VERSION=$(cat ../../../../VERSION)
  5. # Build
  6. cmake ../../../.. -B build -DCMAKE_BUILD_TYPE=Release
  7. cmake --build build || exit
  8. cmake --install build --prefix=appdir/usr || exit
  9. # Deploy
  10. cp /usr/bin/adb appdir/usr/bin/
  11. cp /usr/bin/zipalign appdir/usr/bin/
  12. # Package
  13. wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
  14. chmod +x linuxdeployqt-continuous-x86_64.AppImage
  15. ./linuxdeployqt-continuous-x86_64.AppImage \
  16. appdir/usr/share/applications/apk-editor-studio.desktop \
  17. -appimage \
  18. -executable=appdir/usr/bin/adb \
  19. -executable=appdir/usr/bin/zipalign || exit
  20. mv APK_Editor_Studio*.AppImage apk-editor-studio_linux_$VERSION.AppImage