mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ci: use new AppImage runtime
This commit is contained in:
parent
00a11fbd02
commit
05ddd42604
1 changed files with 1 additions and 9 deletions
|
@ -14,18 +14,15 @@ fi
|
||||||
|
|
||||||
arch=
|
arch=
|
||||||
appimage_arch=
|
appimage_arch=
|
||||||
appimage_runtime=
|
|
||||||
target=
|
target=
|
||||||
case "$RUNTIME" in
|
case "$RUNTIME" in
|
||||||
linux-x64)
|
linux-x64)
|
||||||
arch=amd64
|
arch=amd64
|
||||||
appimage_arch=x86_64
|
appimage_arch=x86_64
|
||||||
appimage_runtime=runtime-fuse2-x86_64
|
|
||||||
target=x86_64;;
|
target=x86_64;;
|
||||||
linux-arm64)
|
linux-arm64)
|
||||||
arch=arm64
|
arch=arm64
|
||||||
appimage_arch=arm_aarch64
|
appimage_arch=arm_aarch64
|
||||||
appimage_runtime=runtime-fuse2-aarch64
|
|
||||||
target=aarch64;;
|
target=aarch64;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown runtime $RUNTIME"
|
echo "Unknown runtime $RUNTIME"
|
||||||
|
@ -33,7 +30,6 @@ case "$RUNTIME" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
APPIMAGETOOL_URL=https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
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
|
cd build
|
||||||
|
|
||||||
|
@ -42,10 +38,6 @@ if [ ! -f "appimagetool" ]; then
|
||||||
chmod +x appimagetool
|
chmod +x appimagetool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "appimage_runtime" ]; then
|
|
||||||
curl -o appimage_runtime -L "$APPIMAGE_RUNTIME_URL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f SourceGit/*.dbg
|
rm -f SourceGit/*.dbg
|
||||||
|
|
||||||
mkdir -p SourceGit.AppDir/opt
|
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
|
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
|
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/opt/sourcegit/
|
||||||
mkdir -p resources/deb/usr/bin
|
mkdir -p resources/deb/usr/bin
|
||||||
|
|
Loading…
Reference in a new issue