Commit 9a1fca27 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

another attempt to fix #218: get deterministic, sequential behavior when...

another attempt to fix #218: get deterministic, sequential behavior when substituting the "nwjs" string for "Purr Data" in the OSX app bundle
parent 2a1402ba
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment