From 9547510ffeb0ccec6e0abd42ee6794bb0eb3b2df Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 12 May 2025 09:07:05 +0200 Subject: [PATCH] enable appimage without creating release --- .../scripts/github-actions/build-linux-mac.sh | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/resources/scripts/github-actions/build-linux-mac.sh b/resources/scripts/github-actions/build-linux-mac.sh index 4594580f0..188d7a9cb 100755 --- a/resources/scripts/github-actions/build-linux-mac.sh +++ b/resources/scripts/github-actions/build-linux-mac.sh @@ -87,21 +87,30 @@ if [ $is_linux = true ]; then appstreamcli validate "$prefix/share/metainfo/$app_id.metainfo.xml" ## Obtain appimagetool. - #appimagetool_file=$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) - #wget -c "https://github.com/$appimagetool_file" - #chmod +x appimagetool-*.AppImage - #mv appimagetool-*.AppImage appimagetool.AppImage - #export VERSION=1.0 - #./appimagetool.AppImage -s deploy AppDir/usr/share/applications/*.desktop - #./appimagetool.AppImage ./AppDir + appimagetool_file=$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) + wget -c "https://github.com/$appimagetool_file" + chmod +x appimagetool-*.AppImage + mv appimagetool-*.AppImage appimagetool.AppImage + + export VERSION=1.0 + + GH_TKN=$GITHUB_TOKEN + unset GITHUB_TOKEN + + ./appimagetool.AppImage -s deploy AppDir/usr/share/applications/*.desktop + ./appimagetool.AppImage ./AppDir + + export GITHUB_TOKEN=$GH_TKN + ## Rename AppImaage. - #set -- R*.AppImage - #imagename="$1" - #if [[ "$webengine" == "ON" ]]; then - # imagenewname="rssguard-${git_tag}-${git_revision}-linux64.AppImage" - #else - # imagenewname="rssguard-${git_tag}-${git_revision}-lite-linux64.AppImage" - #fi + set -- R*.AppImage + imagename="$1" + + if [[ "$webengine" == "ON" ]]; then + imagenewname="rssguard-${git_tag}-${git_revision}-linux64.AppImage" + else + imagenewname="rssguard-${git_tag}-${git_revision}-lite-linux64.AppImage" + fi else # Fix .dylib linking. otool -L "$prefix/Contents/MacOS/rssguard"