Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 59dba20c1e |
+2
-9
@@ -54,17 +54,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Building AppImage (requires appimagetool) ==="
|
echo "=== Building AppImage (requires appimagetool) ==="
|
||||||
# Optional: set VERSION when building for release so update info is embedded (for Gear Lever etc.)
|
# Note: appimagetool does not accept plain https URLs for -u; use zsync/gh-releases-zsync per AppImage docs.
|
||||||
# e.g. VERSION=v1.0.1 ./build_appimage.sh
|
|
||||||
GITEA_RELEASES="http://brassnet.ddns.net:33983/Dawnsorrow/HS-Rename/releases"
|
|
||||||
UPDATE_INFO=""
|
|
||||||
if [[ -n "${VERSION:-}" ]]; then
|
|
||||||
UPDATE_INFO="-u url|${GITEA_RELEASES}/download/${VERSION}/HSRename.AppImage"
|
|
||||||
fi
|
|
||||||
if command -v appimagetool &>/dev/null; then
|
if command -v appimagetool &>/dev/null; then
|
||||||
OUT="${APP_NAME}.AppImage"
|
OUT="${APP_NAME}.AppImage"
|
||||||
# shellcheck disable=SC2086
|
appimagetool "$APPDIR" "$OUT"
|
||||||
appimagetool $UPDATE_INFO "$APPDIR" "$OUT"
|
|
||||||
echo "Done: $OUT"
|
echo "Done: $OUT"
|
||||||
else
|
else
|
||||||
echo "AppDir is ready at $APPDIR/"
|
echo "AppDir is ready at $APPDIR/"
|
||||||
|
|||||||
Reference in New Issue
Block a user