mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
build(linux): use sharun for appimage bundling
This should fix issues with OpenGL, as well as help as avoid using some annoying (and fragile) hacks to locate our actual binary/other resources Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
1dd8c9606f
commit
06e99e2990
2 changed files with 24 additions and 12 deletions
22
.github/actions/package/linux/action.yml
vendored
22
.github/actions/package/linux/action.yml
vendored
|
|
@ -58,9 +58,7 @@ runs:
|
||||||
|
|
||||||
GPG_PRIVATE_KEY: ${{ inputs.gpg-private-key }}
|
GPG_PRIVATE_KEY: ${{ inputs.gpg-private-key }}
|
||||||
run: |
|
run: |
|
||||||
cmake --install ${{ env.BUILD_DIR }} --config ${{ inputs.build-type }} --prefix ${{ env.INSTALL_APPIMAGE_DIR }}/usr
|
cmake --install ${{ env.BUILD_DIR }} --config ${{ inputs.build-type }} --prefix ${{ env.INSTALL_APPIMAGE_DIR }}
|
||||||
|
|
||||||
cp ${{ env.INSTALL_APPIMAGE_DIR }}/usr/share/metainfo/org.prismlauncher.PrismLauncher.{metainfo,appdata}.xml
|
|
||||||
|
|
||||||
if [ '${{ inputs.gpg-private-key-id }}' != '' ]; then
|
if [ '${{ inputs.gpg-private-key-id }}' != '' ]; then
|
||||||
echo "$GPG_PRIVATE_KEY" > privkey.asc
|
echo "$GPG_PRIVATE_KEY" > privkey.asc
|
||||||
|
|
@ -70,8 +68,22 @@ runs:
|
||||||
echo ":warning: Skipped code signing for Linux AppImage, as gpg key was not present." >> $GITHUB_STEP_SUMMARY
|
echo ":warning: Skipped code signing for Linux AppImage, as gpg key was not present." >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
appimagetool -s deploy "$INSTALL_APPIMAGE_DIR"/usr/share/applications/*.desktop
|
sharun lib4bin \
|
||||||
cp ~/bin/AppImageUpdate.AppImage "$INSTALL_APPIMAGE_DIR"/usr/bin/
|
--hard-links \
|
||||||
|
--with-hooks \
|
||||||
|
--dst-dir "$INSTALL_APPIMAGE_DIR" \
|
||||||
|
"$INSTALL_APPIMAGE_DIR"/bin/* "$QT_PLUGIN_PATH"/*/*.so
|
||||||
|
|
||||||
|
cp ~/bin/AppImageUpdate.AppImage "$INSTALL_APPIMAGE_DIR"/bin/
|
||||||
|
# FIXME(@getchoo): gamemode doesn't seem to be very portable with DBus. Find a way to make it work!
|
||||||
|
find "$INSTALL_APPIMAGE_DIR" -name '*gamemode*' -exec rm {} +
|
||||||
|
|
||||||
|
ln -s org.prismlauncher.PrismLauncher.metainfo.xml "$INSTALL_APPIMAGE_DIR"/share/metainfo/org.prismlauncher.PrismLauncher.appdata.xml
|
||||||
|
ln -s share/applications/org.prismlauncher.PrismLauncher.desktop "$INSTALL_APPIMAGE_DIR"
|
||||||
|
ln -s share/icons/hicolor/256x256/apps/org.prismlauncher.PrismLauncher.png "$INSTALL_APPIMAGE_DIR"
|
||||||
|
mv "$INSTALL_APPIMAGE_DIR"/{sharun,AppRun}
|
||||||
|
ls -la "$INSTALL_APPIMAGE_DIR"
|
||||||
|
|
||||||
# FIXME(@getchoo): Validate AppStream information when https://github.com/probonopd/go-appimage/pull/379 is merged
|
# FIXME(@getchoo): Validate AppStream information when https://github.com/probonopd/go-appimage/pull/379 is merged
|
||||||
mkappimage \
|
mkappimage \
|
||||||
--no-appstream \
|
--no-appstream \
|
||||||
|
|
|
||||||
|
|
@ -56,19 +56,19 @@ runs:
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
gh release download continuous \
|
gh release download \
|
||||||
--repo probonopd/go-appimage \
|
--repo VHSgunzo/sharun \
|
||||||
--pattern "appimagetool-*-$APPIMAGE_ARCH.AppImage" \
|
--pattern "sharun-$APPIMAGE_ARCH-aio" \
|
||||||
--output ~/bin/appimagetool
|
--output ~/bin/sharun
|
||||||
|
|
||||||
gh release download continuous \
|
gh release download continuous \
|
||||||
--repo probonopd/go-appimage \
|
--repo probonopd/go-appimage \
|
||||||
--pattern "mkappimage-*-$APPIMAGE_ARCH.AppImage" \
|
--pattern "mkappimage-*-$APPIMAGE_ARCH.AppImage" \
|
||||||
--output ~/bin/mkappimage
|
--output ~/bin/mkappimage
|
||||||
chmod +x ~/bin/appimagetool ~/bin/mkappimage
|
|
||||||
echo "$HOME/bin" >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
gh release download \
|
gh release download \
|
||||||
--repo AppImageCommunity/AppImageUpdate \
|
--repo AppImageCommunity/AppImageUpdate \
|
||||||
--pattern "AppImageUpdate-$APPIMAGE_ARCH.AppImage" \
|
--pattern "AppImageUpdate-$APPIMAGE_ARCH.AppImage" \
|
||||||
--output ~/bin/AppImageUpdate.AppImage
|
--output ~/bin/AppImageUpdate.AppImage
|
||||||
chmod +x ~/bin/AppImageUpdate.AppImage
|
chmod +x ~/bin/*
|
||||||
|
echo "$HOME/bin" >> "$GITHUB_PATH"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue