mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user