mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
Add back wrapper
This commit is contained in:
parent
ba6ce6b68c
commit
caba742784
2 changed files with 7 additions and 0 deletions
3
dist/macosx/m64py.sh
vendored
Executable file
3
dist/macosx/m64py.sh
vendored
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd "${0%/*}"
|
||||
./m64py
|
4
setup.py
4
setup.py
|
@ -167,6 +167,8 @@ class BuildDmg(setuptools.Command):
|
|||
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 = ""
|
||||
|
@ -176,6 +178,8 @@ class BuildDmg(setuptools.Command):
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue