From 0c1b389f957ead2c53586b9104eb21d24b062f7b Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sat, 14 Jan 2017 22:51:20 -0500 Subject: [PATCH] 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 --- packages/darwin_app/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 74b303ecf..1f0c670a5 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -152,7 +152,7 @@ darwin_app_wrapper: Info.plist # Now change the localized app name in Resources/*.lproj from nwjs # to "Purr Data". For some reason "CFBundleDisplayName" doesn't accept # 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 -- GitLab