build-appimage.sh 605 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. set -e
  3. rm -rf AppDir
  4. mkdir -p AppDir/usr/lib/slam-cross
  5. cp -a publish/. AppDir/usr/lib/slam-cross/
  6. cp packaging/slam-cross.desktop packaging/slam-cross.png AppDir/
  7. cat > AppDir/AppRun <<'EOF'
  8. #!/bin/sh
  9. here="$(dirname "$(readlink -f "$0")")"
  10. exec "$here/usr/lib/slam-cross/SLAM-Cross" "$@"
  11. EOF
  12. chmod +x AppDir/AppRun
  13. if [ ! -x appimagetool ]; then
  14. curl -sfLo appimagetool https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
  15. chmod +x appimagetool
  16. fi
  17. ARCH=x86_64 ./appimagetool --appimage-extract-and-run AppDir SLAM-Cross-x86_64.AppImage