From 9a1fca271258da040850533324c055bd222974ee Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Mon, 16 Jan 2017 18:24:07 -0500 Subject: [PATCH] another attempt to fix #218: get deterministic, sequential behavior when substituting the "nwjs" string for "Purr Data" in the OSX app bundle --- packages/darwin_app/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 1f0c670a5..4515c508c 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -152,7 +152,14 @@ 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 -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 + for file in $(BUILD_BASE)/*.app/Contents/Resources/*.lproj/InfoPlist.strings; \ + do \ + plutil -convert json "$$file"; \ + LC_ALL=C sed -i.bak 's/"CFBundleName":"nwjs"/"CFBundleName":"Purr Data"/g' "$$file"; \ + LC_ALL=C sed -i.bak 's/"CFBundleDisplayName":"nwjs"/"CFBundleDisplayName":"PurrData"/g' "$$file"; \ + rm "$$file".bak; \ + plutil -convert binary1 "$$file"; \ + done; #------------------------------------------------------------------------------# # generate Info.plist using PD_APP_NAME and PD_VERSION -- GitLab