Skip to content

Commit aaac977

Browse files
committed
Update build_dmg
1 parent 6ad9523 commit aaac977

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def copy_files(self):
9898
shutil.copy(os.path.join(BASE_DIR, "test", "mupen64plus.v64"), dest_path)
9999

100100
def remove_files(self):
101-
dest_path = os.path.join(self.dist_dir, "dmg", "M64Py.app", "Contents", "MacOS")
101+
dest_path = os.path.join(self.dist_dir, "dmg", "M64Py.app", "Contents")
102102
for dir_name in ["include", "lib"]:
103-
shutil.rmtree(os.path.join(dest_path, dir_name), True)
104-
os.remove(os.path.join(self.dist_dir, "dmg", "M64Py.app", "Contents",
105-
"Resources", "icon-windowed.icns"))
103+
shutil.rmtree(os.path.join(dest_path, "Resources", dir_name), True)
104+
os.remove(os.path.join(dest_path, "MacOS", dir_name))
105+
os.remove(os.path.join(dest_path, "Resources", "icon-windowed.icns"))
106106

107107
def run_build(self):
108108
import PyInstaller.building.build_main

0 commit comments

Comments
 (0)