Use env var for appimagetool

This commit is contained in:
Veronica Berglyd Olsen
2025-06-09 19:08:19 +02:00
parent 910723bbcd
commit e6befda146
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -114,10 +114,11 @@ def appImage(args: argparse.Namespace) -> None:
shutil.copyfile(libPath / "libxcb-cursor.so.0", appLibs / "libxcb-cursor.so.0")
# Build Image
appToolExec = os.environ.get("APPIMAGE_TOOL_EXEC", "appimagetool")
env = os.environ.copy()
env["ARCH"] = mArch
systemCall([
"appimagetool", "--no-appstream", "--updateinformation",
appToolExec, "--no-appstream", "--updateinformation",
f"gh-releases-zsync|vkbo|novelwriter|latest|novelwriter-*-{mArch}.AppImage.zsync",
str(appDir), bldImg
], cwd=bldDir, env=env)