Skip to content

Commit baac03f

Browse files
committed
[docs] support renaming the helper application under macOS.
Fix nwjs#6103 This is fixed in the chromium repo.
1 parent 1eeb75c commit baac03f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/For Users/Package and Distribute.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ On Mac OS X, you need to modify following files to have your own icon and bundle
9393
* `Contents/Resources/nw.icns`: icon of your app. `nw.icns` is in [Apple Icon Image Format](https://en.wikipedia.org/wiki/Apple_Icon_Image_format). You can convert your icon in PNG/JPEG format into ICNS by using tools like [Image2Icon](http://www.img2icnsapp.com/).
9494
* `Contents/Info.plist`: the apple package description file. You can view [Implementing Cocoa's Standard About Panel](http://cocoadevcentral.com/articles/000071.php) on how this file will influence your app and what fields you should modify.
9595

96+
To rename the application, the following files should be modified:
97+
* `Contents/Info.plist` - CFBundleDisplayName
98+
* `Contents/Resources/en.lproj/InfoPlist.strings` - CFBundleDisplayName
99+
* `package.json` -- add a string field `product_string` (e.g. foobar); the helper application will be shown as 'foobar Helper'. (since v0.24.4)
100+
* `Contents/Versions/n.n.n.n/nwjs Helper.app/Contents/MacOS/nwjs Helper` - rename the file to 'foobar Helper'
101+
* `Contents/Versions/n.n.n.n/nwjs Helper.app/Contents/Info.plist` - change CFBundleDisplayName
102+
* `Contents/Versions/n.n.n.n/nwjs Helper.app` - rename the directory to 'foobar Helper.app'
103+
96104
You should sign your Mac app, or the user won't launch the app if Gatekeeper is turned on. See [Support for Mac App Store](Advanced/Support for Mac App Store.md) for details.
97105

98106
## References

docs/References/Manifest Format.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ You can specify a URL here. You can also specify just a filename (such as `in
4040

4141
Following fields control which features NW.js should provide and how NW.js should open the main window.
4242

43+
### product_string
44+
45+
* `{String}` Use it to [rename the Helper application under macOS](http://docs.nwjs.io/en/latest/For%20Users/Package%20and%20Distribute/#mac-os-x).
46+
4347
### nodejs
4448

4549
* `{Boolean}` set `nodejs` to false will disable Node support in NW.js.

0 commit comments

Comments
 (0)