mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
ci: Add AppImage zsync update (#3965)
This commit is contained in:
committed by
GitHub
parent
62cefc69ef
commit
7d8365521c
@@ -54,4 +54,8 @@ if [[ "$APPIMAGE_MODE" == "with-appimage" ]]; then
|
||||
curl -sLO "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/latest/download/linuxdeploy-plugin-qt-${ARCH}.AppImage"
|
||||
sudo cp -f "linuxdeploy-plugin-qt-${ARCH}.AppImage" "/usr/local/bin/"
|
||||
sudo chmod +x "/usr/local/bin/linuxdeploy-plugin-qt-${ARCH}.AppImage"
|
||||
|
||||
curl -sLO "https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/latest/download/linuxdeploy-plugin-appimage-${ARCH}.AppImage"
|
||||
sudo cp -f "linuxdeploy-plugin-appimage-${ARCH}.AppImage" "/usr/local/bin/"
|
||||
sudo chmod +x "/usr/local/bin/linuxdeploy-plugin-appimage-${ARCH}.AppImage"
|
||||
fi
|
||||
|
||||
+25
-2
@@ -1,5 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Executing linuxdeploy with cmdline: LDAI_VERBOSE=1 $@"
|
||||
export LDAI_VERBOSE=1
|
||||
|
||||
LDAI_VERBOSE=1 $@
|
||||
# Try to detect the target architecture from environment or fallback to host
|
||||
if [ -n "$ARCH" ]; then
|
||||
DETECTED_ARCH="$ARCH"
|
||||
elif [ -n "$CMAKE_APPIMAGE_ARCH" ]; then
|
||||
DETECTED_ARCH="$CMAKE_APPIMAGE_ARCH"
|
||||
elif [ -n "$APPIMAGE_ARCH" ]; then
|
||||
DETECTED_ARCH="$APPIMAGE_ARCH"
|
||||
else
|
||||
# Fallback to host architecture
|
||||
UNAME_ARCH=$(uname -m)
|
||||
case "$UNAME_ARCH" in
|
||||
x86_64)
|
||||
DETECTED_ARCH="x86_64" ;;
|
||||
aarch64|arm64)
|
||||
DETECTED_ARCH="aarch64" ;;
|
||||
*)
|
||||
DETECTED_ARCH="$UNAME_ARCH" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo "Detected architecture: $DETECTED_ARCH"
|
||||
export LDAI_UPDATE_INFORMATION="gh-releases-zsync|Vita3K|Vita3K|continuous|Vita3K-$(echo "$DETECTED_ARCH").AppImage.zsync"
|
||||
|
||||
$@
|
||||
|
||||
Reference in New Issue
Block a user