Skip to content

Commit b7f96d8

Browse files
authored
Switch to appimagetool-uruntime to simplify and speedup CI (#65)
* simplify script by using appimagetool-uruntime * make appimagetool preload the uruntime
1 parent ae8c723 commit b7f96d8

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fi
100100
cd "${TMP_DIR}"
101101

102102
# create app image
103-
appimagetool --comp zstd \
103+
URUNTIME_PRELOAD=1 appimagetool --comp zstd \
104104
--mksquashfs-opt -Xcompression-level --mksquashfs-opt 22 \
105105
--mksquashfs-opt -b --mksquashfs-opt 1M \
106106
-u "${UPINFO}" "${APP_DIR}" --runtime-file /usr/local/bin/uruntime

setup.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ URUNTIME_VERSION="$(get_latest_gh_release 'VHSgunzo/uruntime')"
2525
GITHUB_BASE="https://github.com"
2626
PANDOC_BASE="${GITHUB_BASE}/jgm/pandoc/releases/download/${PANDOC_VERSION}"
2727
MINISIGN_URL="${GITHUB_BASE}/jedisct1/minisign/releases/download/${MINISIGN_VERSION}/minisign-${MINISIGN_VERSION}-linux.tar.gz"
28-
APPIMAGE_URL="${GITHUB_BASE}/AppImage/appimagetool/releases/download/continuous/appimagetool-${ARCH}.AppImage"
28+
APPIMAGE_URL="${GITHUB_BASE}/pkgforge-dev/appimagetool-uruntime/releases/download/continuous/appimagetool-${ARCH}.AppImage"
2929
LLVM_BASE="${GITHUB_BASE}/pkgforge-dev/llvm-libs-debloated/releases/download/continuous"
3030
ZIG_URL="https://ziglang.org/download/${ZIG_VERSION}/zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz"
3131
LIB4BIN_URL="https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin"
3232
SHARUN_URL="${GITHUB_BASE}/VHSgunzo/sharun/releases/download/${SHARUN_VERSION}/sharun-${ARCH}"
33-
URUNTIME_URL="${GITHUB_BASE}/VHSgunzo/uruntime/releases/download/${URUNTIME_VERSION}/uruntime-appimage-squashfs-lite-${ARCH}"
3433

3534
case "${ARCH}" in
3635
"x86_64")
@@ -92,14 +91,6 @@ rm -rf /usr/local/bin/sharun
9291
wget "${SHARUN_URL}" -O /usr/local/bin/sharun
9392
chmod +x /usr/local/bin/sharun
9493

95-
# uruntime: https://github.com/VHSgunzo/uruntime
96-
rm -rf /usr/local/bin/uruntime
97-
wget "${URUNTIME_URL}" -O /usr/local/bin/uruntime
98-
chmod +x /usr/local/bin/uruntime
99-
100-
# keep the uruntime mountpoint (speeds up launch time)
101-
sed -i 's|URUNTIME_MOUNT=[0-9]|URUNTIME_MOUNT=0|' /usr/local/bin/uruntime
102-
10394
# ld-preload-open: https://github.com/fritzw/ld-preload-open
10495
rm -rf /opt/path-mapping.so
10596
git clone https://github.com/fritzw/ld-preload-open.git

0 commit comments

Comments
 (0)