Skip to content

Commit

Permalink
Add back wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Oct 19, 2024
1 parent ba6ce6b commit caba742
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/macosx/m64py.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./m64py
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def set_plist(self):
info_plist = os.path.join(self.dist_dir, "dmg", "M64Py.app", "Contents", "Info.plist")
shutil.copy(os.path.join(self.dist_dir, "m64py.icns"),
os.path.join(self.dist_dir, "dmg", "M64Py.app", "Contents", "Resources"))
shutil.copy(os.path.join(self.dist_dir, "m64py.sh"),
os.path.join(self.dist_dir, "dmg", "M64Py.app", "Contents", "MacOS"))
with open(info_plist, "r") as opts:
data = opts.read()
plist_file = ""
Expand All @@ -176,6 +178,8 @@ def set_plist(self):
line = line.replace("0.0.0", FRONTEND_VERSION)
elif "icon-windowed.icns" in line:
line = line.replace("icon-windowed.icns", "m64py.icns")
elif "<string>m64py</string>" in line:
line = line.replace("m64py", "m64py.sh")
plist_file += line + "\n"
with open(info_plist, "w") as opts:
opts.write(plist_file)
Expand Down

0 comments on commit caba742

Please sign in to comment.