Skip to content

Commit 9e8f0bd

Browse files
committed
Fix appimagetool download & run
1 parent 5768b3b commit 9e8f0bd

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

packaging/appimage/build-appimage.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ sudo apt-get install -y --no-install-recommends \
1212
# Install build tooling
1313
pip install --quiet python-appimage
1414

15+
# Download appimagetool upfront so python-appimage finds it in PATH
16+
# (avoids its internal download from AppImage/appimagetool which lacks continuous releases)
17+
wget -q "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${ARCH}.AppImage" \
18+
-O /usr/local/bin/appimagetool
19+
chmod +x /usr/local/bin/appimagetool
20+
21+
# Run AppImages without FUSE (not available on GitHub-hosted runners)
22+
export APPIMAGE_EXTRACT_AND_RUN=1
23+
1524
# Build base Python AppImage and install tempren into it
1625
# python-appimage looks for .desktop and icon alongside the entrypoint script
1726
python -m python_appimage build app \
@@ -43,10 +52,6 @@ SYSTEM_MAGIC_DB="/usr/share/misc/magic.mgc"
4352
sed -i '2i export LD_LIBRARY_PATH="${APPDIR}/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"' \
4453
"${APPDIR}/AppRun"
4554

46-
# Download appimagetool and squash into final AppImage
47-
wget -q "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${ARCH}.AppImage" \
48-
-O appimagetool
49-
chmod +x appimagetool
50-
ARCH="${ARCH}" ./appimagetool "${APPDIR}" "tempren-${VERSION}-${ARCH}.AppImage"
55+
ARCH="${ARCH}" appimagetool "${APPDIR}" "tempren-${VERSION}-${ARCH}.AppImage"
5156

5257
echo "Built: tempren-${VERSION}-${ARCH}.AppImage"

0 commit comments

Comments
 (0)