[CI] Build AppImage (#150)

lib was re-added before packaging appimage.
remove prior to packaging
This commit is contained in:
qurious-pixel 2023-04-28 16:57:11 -07:00 committed by GitHub
parent 895b5e3865
commit 94b33c7340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,12 @@ if [ ! -f ../bin/samrewritten ]; then
popd
fi
export LINUXDEPLOY="linuxdeploy-x86_64.AppImage --appimage-extract-and-run"
export LINUXDEPLOY="squashfs-root/usr/bin/linuxdeploy"
rm -rf AppDir
chmod +x ${LINUXDEPLOY%%--*}
./$LINUXDEPLOY --appdir AppDir
chmod +x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appimage-extract
$LINUXDEPLOY --appdir AppDir
grep -v Icon samrewritten.desktop > AppDir/myapp.desktop
echo Icon=myapp >> AppDir/myapp.desktop
cp ../assets/icon_256.png AppDir/myapp.png
@ -32,4 +33,8 @@ cp ../bin/samrewritten AppDir/usr/bin
cp ../bin/libsteam_api.so AppDir/usr/lib
cp ../assets/icon_256.png AppDir/usr/assets/
LD_LIBRARY_PATH=AppDir/usr/lib ./$LINUXDEPLOY --appdir AppDir --exclude-library=libgmodule-2.0 --output appimage
LD_LIBRARY_PATH=AppDir/usr/lib $LINUXDEPLOY --appdir AppDir
rm AppDir/usr/lib/libglib-2.0.so.0
$LINUXDEPLOY-plugin-appimage --appdir AppDir
rm -rf squashfs-root