Skip to content

Clone your own voice on your own computer: speak any text in 60+ languages and dub videos into another language in your voice. Fully local. Early version.

fix(build): give the AppImage's AppRun read and run rights for every user (#177)

Taras Hevlichc4327d705b93
diff --git a/scripts/build/build-linux.sh b/scripts/build/build-linux.sh
index 6f7ba16..4f9fb0f 100755
--- a/scripts/build/build-linux.sh
+++ b/scripts/build/build-linux.sh
@@ -60,6 +60,15 @@ if [[ ",$FORMATS," == *",appimage,"* ]]; then
# No FUSE in containers and WSL; the tools' bundled, outdated `strip` chokes on .relr.dyn sections.
export APPIMAGE_EXTRACT_AND_RUN=1
export NO_STRIP=true
+ # cargo-packager saves AppRun as 0764, so the AppDir gets 0744, which appimagetool refuses since 2026-12.
+ need curl "Install it: sudo apt install curl"
+ apprun="${XDG_CACHE_HOME:-$HOME/.cache}/.cargo-packager/AppImage/AppRun-$(uname -m)"
+ if [ ! -f "$apprun" ]; then
+ mkdir -p "$(dirname "$apprun")"
+ curl -fsSL -o "$apprun" \
+ "https://github.com/tauri-apps/binary-releases/releases/download/apprun-old/AppRun-$(uname -m)"
+ fi
+ chmod 755 "$apprun"
fi
cargo_version="$(sed -n 's/^version *= *"\(.*\)"/\1/p' Cargo.toml | head -n1)"