Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify the WorkingDirectory for OSX app plist files #8

Merged

Conversation

whoward
Copy link
Contributor

@whoward whoward commented May 15, 2012

In my project we rely the working directory to be the same as it is on Windows or when using the JAR (where the *.exe or *.jar file resides)

Since OSX generates .app files this is not the case (the working directory is the directory which contains the .app directory

In our case we rely on it so we can load a static data file (lib/countries.yml) which is specified with the files_to_copy option.

I've added a new option mac_plist_working_directory which will specify the value WorkingDirectory key in the plist file. This will default to $APP_PACKAGE which is Apple's default value for this key, which will ensure backwards compatibility.

https://developer.apple.com/library/mac/#documentation/Java/Reference/Java_InfoplistRef/Articles/JavaDictionaryInfo.plistKeys.html

Neurogami added a commit that referenced this pull request May 17, 2012
…plist

Allow users to specify the WorkingDirectory for OSX app plist files
@Neurogami Neurogami merged commit ae91fa3 into rawr:master May 17, 2012
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