Skip to content
Snippets Groups Projects
Commit 0c1b389f authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

first shot at fixing issue #218: error when trying to install on OSX. See if...

first shot at fixing issue #218: error when trying to install on OSX. See if using a temporary text file will work around the bug of plutil creating empty files
parent 487f9bad
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ darwin_app_wrapper: Info.plist ...@@ -152,7 +152,7 @@ darwin_app_wrapper: Info.plist
# Now change the localized app name in Resources/*.lproj from nwjs # Now change the localized app name in Resources/*.lproj from nwjs
# to "Purr Data". For some reason "CFBundleDisplayName" doesn't accept # to "Purr Data". For some reason "CFBundleDisplayName" doesn't accept
# spaces so we give it "PurrData" # spaces so we give it "PurrData"
for file in $(BUILD_BASE)/*.app/Contents/Resources/*.lproj/InfoPlist.strings; do plutil -convert json "$$file"; cat "$$file" | LC_ALL=C sed 's/"CFBundleName":"nwjs"/"CFBundleName":"Purr Data"/g' > "$$file"; cat "$$file" | LC_ALL=C sed 's/"CFBundleDisplayName":"nwjs"/"CFBundleDisplayName":"PurrData"/g' > "$$file"; plutil -convert binary1 "$$file"; done for file in $(BUILD_BASE)/*.app/Contents/Resources/*.lproj/InfoPlist.strings; do plutil -convert json -o ./tmp.txt "$$file"; cat ./tmp.txt | LC_ALL=C sed 's/"CFBundleName":"nwjs"/"CFBundleName":"Purr Data"/g' | LC_ALL=C sed 's/"CFBundleDisplayName":"nwjs"/"CFBundleDisplayName":"PurrData"/g' > ./tmp.txt; plutil -convert binary1 -o "$$file" ./tmp.txt; rm ./tmp.txt; done
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# generate Info.plist using PD_APP_NAME and PD_VERSION # generate Info.plist using PD_APP_NAME and PD_VERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment