From 20c9e9f141efa218f028d269f5c4e9685f7cd7f2 Mon Sep 17 00:00:00 2001 From: ruckus7382sfgsgdf <355121112+ruckus7382sfgsgdf@users.noreply.github.com> Date: Thu, 12 Nov 2026 14:09:07 -0600 Subject: [PATCH] Linux: the AppImage and its builder take Triforce's crest The Linux package stopped at a picture the tree does not have (assets/hookshot.png); it takes assets/triforce.png. Co-Authored-By: Claude Fable 5.2 --- builder/linux/hookshot_builder.py | 4 ++-- builder/linux/linux_update.py | 2 +- scripts/linux/appimage.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/linux/hookshot_builder.py b/builder/linux/hookshot_builder.py index 6b2b73c..3c1c752 100644 --- a/builder/linux/hookshot_builder.py +++ b/builder/linux/hookshot_builder.py @@ -137,7 +137,7 @@ def add_to_menu(folder): if any(ch in folder for ch in "\r\n\0"): # (a line break would start another key of the entry) raise ValueError("the game folder's name has a line break") icon = os.path.join(folder, "hookshot.png") - src = os.path.join(ROOT, "assets", "hookshot.png") + src = os.path.join(ROOT, "assets", "triforce.png") if os.path.exists(src): shutil.copyfile(src, icon) apps = os.path.join(os.environ.get("XDG_DATA_HOME") or os.path.expanduser("~/.local/share"), "applications") @@ -531,7 +531,7 @@ class Builder(tk.Tk): """assets/hookshot.png (the Windows head's and the game's icon), size pixels wide over the page: averaged down with its alpha on Tk 9, every nth pixel on an older Tk""" self.images["logo"] = None - path = os.path.join(ROOT, "assets", "hookshot.png") + path = os.path.join(ROOT, "assets", "triforce.png") try: full = tk.PhotoImage(master=self, file=path) except (tk.TclError, OSError): diff --git a/builder/linux/linux_update.py b/builder/linux/linux_update.py index 55a081a..10ee8f8 100644 --- a/builder/linux/linux_update.py +++ b/builder/linux/linux_update.py @@ -476,7 +476,7 @@ def _finish_tree(dest): apprun = os.path.join(dest, "AppRun") shutil.copyfile(os.path.join(tools, "builder", "linux", "AppRun"), apprun) os.chmod(apprun, 0o755) # (rwxr-xr-x: the launcher must run; only its owner may change it) - icon = os.path.join(tools, "assets", "hookshot.png") + icon = os.path.join(tools, "assets", "triforce.png") if os.path.isfile(icon): shutil.copyfile(icon, os.path.join(dest, "hookshot.png")) desktop = os.path.join(tools, "builder", "linux", "hookshot-builder.desktop") diff --git a/scripts/linux/appimage.sh b/scripts/linux/appimage.sh index db3c021..d686193 100755 --- a/scripts/linux/appimage.sh +++ b/scripts/linux/appimage.sh @@ -138,9 +138,9 @@ cp builder/linux/AppRun "$APPDIR/AppRun" cp builder/linux/hookshot-builder.desktop "$APPDIR/" # (RecompLauncher reads this from inside the AppImage, at /recomplauncher.json) cp recomplauncher.json "$APPDIR/recomplauncher.json" -cp assets/hookshot.png "$APPDIR/hookshot.png" +cp assets/triforce.png "$APPDIR/hookshot.png" # (Triforce's crest; the name in the image is the one the menu entry and the update list have) mkdir -p "$APPDIR/usr/share/icons/hicolor/256x256/apps" -cp assets/hookshot.png "$APPDIR/usr/share/icons/hicolor/256x256/apps/hookshot.png" +cp assets/triforce.png "$APPDIR/usr/share/icons/hicolor/256x256/apps/hookshot.png" # (the update list, beside AppRun and not inside a hashed part: triforce-linux.txt names each part's checksum) # (the parts are served from the linux-parts release of the repository this is built in, where