From ad0d9c62c04015889f499582877875a3a2ad0c45 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 28 Dec 2016 18:17:05 -0500 Subject: [PATCH] fix #212: app menu shows "nwjs" instead of "Purr Data" --- packages/darwin_app/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 4d34642d5..74b303ecf 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -149,6 +149,10 @@ darwin_app_wrapper: Info.plist install -m0644 -p *.icns "$(PD_APP_CONTENTS)/Resources" #mv "$(PD_APP_CONTENTS)/MacOS/${WISH_NAME}" \ # "$(PD_APP_CONTENTS)/MacOS/${PD_APP_NAME}" + # 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 #------------------------------------------------------------------------------# # generate Info.plist using PD_APP_NAME and PD_VERSION -- GitLab