Skip to content

Commit da2845a

Browse files
static
1 parent c69ac6b commit da2845a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

ci/build.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ patchelf_path="$(which patchelf)"
4343
strip_path="$(which strip)"
4444

4545
export UPD_INFO="gh-releases-zsync|linuxdeploy|linuxdeploy-plugin-qt|continuous|linuxdeploy-plugin-qt-$ARCH.AppImage"
46+
export OUTPUT="linuxdeploy-plugin-qt-$ARCH.AppImage"
47+
48+
# special set of builds using a different experimental runtime, used for testing purposes
49+
if [[ "${USE_STATIC_RUNTIME:-}" != "" ]]; then
50+
custom_runtime_url="https://github.com/AppImage/type2-runtime/releases/download/continuous/runtime-$ARCH"
51+
wget "$custom_runtime_url"
52+
runtime_filename="$(echo "$custom_runtime_url" | rev | cut -d/ -f1 | rev)"
53+
LDAI_RUNTIME_FILE="$(readlink -f "$runtime_filename")"
54+
export LDAI_RUNTIME_FILE
55+
export OUTPUT="linuxdeploy-static-plugin-qt-$ARCH.AppImage"
56+
fi
4657

4758
wget "https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-$ARCH.AppImage"
4859
# qemu is not happy about the AppImage type 2 magic bytes, so we need to "fix" that
@@ -56,4 +67,4 @@ chmod +x linuxdeploy*.AppImage
5667
-e "$strip_path" \
5768
--output appimage
5869

59-
mv linuxdeploy-plugin-qt-"$ARCH".AppImage* "$OLD_CWD"/
70+
mv "$OUTPUT"* "$OLD_CWD"/

0 commit comments

Comments
 (0)