Skip to content

Tweaks for macOS bundle - #47

Merged
FriskTheFallenHuman merged 1 commit into
FriskTheFallenHuman:mainfrom
MacSourcePorts:main
Sep 4, 2026
Merged

FriskTheFallenHuman merged 1 commit into
FriskTheFallenHuman:mainfrom
MacSourcePorts:main

Conversation

@tomkidd

@tomkidd tomkidd commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This adds the executable's path to the list of search paths for the game lib and pk4 files.

Doing this allows a Mac App Bundle to look inside the bundle for the game dylib and the pak007.pk4 file.

Using this I was able to make a bundle for my Mac Source Ports site. Running the Prey2006.app bundle causes it to load the files from the bundle and then add the game data files from ~/.local/share/prey06/ or /usr/local/share/games/prey06/

https://www.macsourceports.com/game/prey

If you don't want to add this or if there's a better way to do it just let me know.

Not sure if this is the best way to handle it but this lets it find the pk4 file and game dylib in the app bundle wherever it runs.
@FriskTheFallenHuman
FriskTheFallenHuman merged commit 983b171 into FriskTheFallenHuman:main Sep 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants