Skip to content

Commit 7d3811f

Browse files
authored
chore: update build appimage script (#5866)
* chore: update new appimage kit url * chore: add error handling for appimagetool download
1 parent 5553096 commit 7d3811f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src-tauri/build-utils/buildAppImage.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
APPIMAGETOOL="./.cache/build-tools/appimagetool"
33
RELEASE_CHANNEL=${RELEASE_CHANNEL:-"stable"}
44

5-
# pull in AppImageTool if it's not pre cached
65
mkdir -p ./.cache/build-tools
7-
if [ ! -f "${APPIMAGETOOL}" ]; then
8-
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O "${APPIMAGETOOL}"
9-
chmod +x "${APPIMAGETOOL}"
10-
fi
6+
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O "${APPIMAGETOOL}" || { echo "Failed to download appimagetool."; exit 1; }
7+
chmod +x "${APPIMAGETOOL}"
118

129
if [ "${RELEASE_CHANNEL}" != "stable" ]; then
1310
APP_DIR=./src-tauri/target/release/bundle/appimage/Jan-${RELEASE_CHANNEL}.AppDir

0 commit comments

Comments
 (0)