From caba742784e4183551d14a3b29228fc23300bcfb Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Sat, 19 Oct 2024 14:39:56 +0200 Subject: [PATCH] Add back wrapper --- dist/macosx/m64py.sh | 3 +++ setup.py | 4 ++++ 2 files changed, 7 insertions(+) create mode 100755 dist/macosx/m64py.sh diff --git a/dist/macosx/m64py.sh b/dist/macosx/m64py.sh new file mode 100755 index 0000000..f783d9b --- /dev/null +++ b/dist/macosx/m64py.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd "${0%/*}" +./m64py diff --git a/setup.py b/setup.py index 35afe5c..82b4186 100644 --- a/setup.py +++ b/setup.py @@ -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 = "" @@ -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 "m64py" in line: + line = line.replace("m64py", "m64py.sh") plist_file += line + "\n" with open(info_plist, "w") as opts: opts.write(plist_file)