ci: use new AppImage runtime

This commit is contained in:
Aikawa Yataro 2024-08-11 15:43:36 +00:00
parent 00a11fbd02
commit 05ddd42604
No known key found for this signature in database
GPG key ID: 1C5D95FB10179404

View file

@ -14,18 +14,15 @@ fi
arch=
appimage_arch=
appimage_runtime=
target=
case "$RUNTIME" in
linux-x64)
arch=amd64
appimage_arch=x86_64
appimage_runtime=runtime-fuse2-x86_64
target=x86_64;;
linux-arm64)
arch=arm64
appimage_arch=arm_aarch64
appimage_runtime=runtime-fuse2-aarch64
target=aarch64;;
*)
echo "Unknown runtime $RUNTIME"
@ -33,7 +30,6 @@ case "$RUNTIME" in
esac
APPIMAGETOOL_URL=https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
APPIMAGE_RUNTIME_URL=https://github.com/AppImage/type2-runtime/releases/download/old/$appimage_runtime
cd build
@ -42,10 +38,6 @@ if [ ! -f "appimagetool" ]; then
chmod +x appimagetool
fi
if [ ! -f "appimage_runtime" ]; then
curl -o appimage_runtime -L "$APPIMAGE_RUNTIME_URL"
fi
rm -f SourceGit/*.dbg
mkdir -p SourceGit.AppDir/opt
@ -61,7 +53,7 @@ ln -rsf SourceGit.AppDir/opt/sourcegit/sourcegit SourceGit.AppDir/AppRun
ln -rsf SourceGit.AppDir/usr/share/applications/com.sourcegit_scm.SourceGit.desktop SourceGit.AppDir
cp resources/appimage/sourcegit.appdata.xml SourceGit.AppDir/usr/share/metainfo/com.sourcegit_scm.SourceGit.appdata.xml
ARCH="$appimage_arch" ./appimagetool -v --runtime-file appimage_runtime SourceGit.AppDir "sourcegit-$VERSION.linux.$arch.AppImage"
ARCH="$appimage_arch" ./appimagetool -v SourceGit.AppDir "sourcegit-$VERSION.linux.$arch.AppImage"
mkdir -p resources/deb/opt/sourcegit/
mkdir -p resources/deb/usr/bin