chore: update build appimage script (#5866)
* chore: update new appimage kit url * chore: add error handling for appimagetool download
This commit is contained in:
parent
5553096bc4
commit
7d3811f879
@ -2,12 +2,9 @@
|
|||||||
APPIMAGETOOL="./.cache/build-tools/appimagetool"
|
APPIMAGETOOL="./.cache/build-tools/appimagetool"
|
||||||
RELEASE_CHANNEL=${RELEASE_CHANNEL:-"stable"}
|
RELEASE_CHANNEL=${RELEASE_CHANNEL:-"stable"}
|
||||||
|
|
||||||
# pull in AppImageTool if it's not pre cached
|
|
||||||
mkdir -p ./.cache/build-tools
|
mkdir -p ./.cache/build-tools
|
||||||
if [ ! -f "${APPIMAGETOOL}" ]; then
|
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O "${APPIMAGETOOL}" || { echo "Failed to download appimagetool."; exit 1; }
|
||||||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O "${APPIMAGETOOL}"
|
|
||||||
chmod +x "${APPIMAGETOOL}"
|
chmod +x "${APPIMAGETOOL}"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${RELEASE_CHANNEL}" != "stable" ]; then
|
if [ "${RELEASE_CHANNEL}" != "stable" ]; then
|
||||||
APP_DIR=./src-tauri/target/release/bundle/appimage/Jan-${RELEASE_CHANNEL}.AppDir
|
APP_DIR=./src-tauri/target/release/bundle/appimage/Jan-${RELEASE_CHANNEL}.AppDir
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user