Skip to content

Commit

Permalink
change SRC_DIR to .app/Contents/Resources/ on macos
Browse files Browse the repository at this point in the history
This commit updates the SRC_DIR from the macos .app/Contents/MacoOS/ dir to .app/Contents/Resources/ dir

Apparently PyInstaller used to put symlinks inside the .app/Contents/MacOS dir for things like 'packages' and 'fonts' to go back to the ../Resources/ dir, but that no longer happens

 * pyinstaller/pyinstaller#7713
 * #55 (comment)

now we'll point at the actual file, not the no-longer-existing symlink
  • Loading branch information
maltfield committed Mar 31, 2024
1 parent ef47ba8 commit 3b5bfe2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/packages/buskill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,11 @@ def __init__(self):
self.APP_DIR = self.EXE_PATH.split( os.sep )[0:-3]
self.APP_DIR = os.sep.join( self.APP_DIR )

# on MacOS, the exe lives in the same dir with all our other src files
self.SRC_DIR = self.EXE_DIR
# on MacOS, the SRC_DIR lives in a 'Resources' dir that's adjacent
# to the EXE_DIR
self.SRC_DIR = self.EXE_DIR.split( os.sep )[0:-1]
self.SRC_DIR.append('Resources')
self.SRC_DIR = os.sep.join( self.SRC_DIR )

# normally the BusKill app is built into a platform-specific executable with
# PyInstaller. But if we're executing it directly as a script, then some of
Expand Down

0 comments on commit 3b5bfe2

Please sign in to comment.