Renaming of NWJS

108 views
Skip to first unread message

Mayank Gupta

unread,
Apr 13, 2017, 5:33:14 AM4/13/17
to nw.js
Hi Team,

We are using nw21 and we need to rename the nwjs application and all its processes in Mac OS Sierra and El Capitan. Can you please suggest some approach to do this?

Mayank Gupta

unread,
Apr 17, 2017, 6:49:17 AM4/17/17
to nw.js
Hi Team,

Any updates on this. It is very urgent for us.

Roger Wang

unread,
Apr 18, 2017, 5:34:15 AM4/18/17
to nw.js
Just replace "nwjs" in Contents/Info.plist and Contents/Resources/en.lproj/InfoPlist.strings and other language files you need.

Mislav Boras

unread,
Apr 18, 2017, 6:05:55 AM4/18/17
to Roger Wang, nw.js
Hello Roger, 

This was not the Initial question. The problem is that they fail to rename the "nwjs helper.app
I succeeded in Version 18.5 and sent them my solution but from 21.0 it is not working anymore... 

I also have to say that this is a crucial issue. The app might geht blocked by gatekeeper or something if people cannot understand that nwjs helper is related to my application. If you give me a hint on how it is done i will write a docu when i find the time. 

For now i have been trying to add ressources to the nwjs helper.app/Contents folder but did not succeed....

Best, 
Mislav

--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roger

unread,
Apr 18, 2017, 7:17:32 AM4/18/17
to Mislav Boras, nw.js
Chrome hardcoded the path of the helper app so it can be found and launched, or there is no way that the main process can tell where is the helper app:

https://github.com/nwjs/chromium.src/blob/nw22/chrome/app/chrome_main_delegate.cc#L848

Since the code is there in very early versions, I don't think it can be changed in 0.18 or 0.21.

Mislav Boras

unread,
Apr 18, 2017, 9:28:29 AM4/18/17
to Roger, nw.js
But you renamed it from "chrome helper" or "chromium helper" into "nwjs helper".
So it would be possible to download the nwjs build and build nwjs according to http://docs.nwjs.io/en/latest/For%20Developers/Building%20NW.js/ ?

Or can the nwjs helper.app be built without building the rest? 

Roger

unread,
Apr 18, 2017, 9:33:22 AM4/18/17
to Mislav Boras, nw.js

Yes, it has to be rebuilt from source code for now. See the source code I referred to in the previous email.

I'd like to provide a way to rename it without recompiling. Before that there has to be a proposal on how the main process could find the helper application.

sysrage

unread,
Nov 27, 2022, 10:43:22 PM11/27/22
to nw.js
Sorry to resurrect a really old conversation, but Ayush and I are running into this with the updated release of nw-builder. We've found that any modification of the helper names (or even simply adding a product_string to package.json) causes the macOS version of NW.js to crash on startup.

Was a method ever provided to rename the helper apps without recompiling? If this just isn't possible, please remove the suggestion from the NW.js Documentation: https://nwjs.readthedocs.io/en/latest/For%20Users/Package%20and%20Distribute/#mac-os-x

The commented-out code here is what we've attempted to implement, based on that documentation: https://github.com/nwutils/nw-builder/blob/main/src/bld/osxCfg.js#L31-L54

Roger Wang

unread,
Nov 27, 2022, 11:09:20 PM11/27/22
to sysrage, nw.js
There is a field 'product_string' in package.json to support renaming the binaries under macOS.

Brian Bothwell

unread,
Nov 28, 2022, 8:06:43 AM11/28/22
to Roger Wang, nw.js
We tried renaming the helpers and setting product_string (this can be seen in the linked code) but it still crashes. Is there a specific format the names must follow? Thanks!

- Brian

On Nov 27, 2022, at 11:09 PM, Roger Wang <wen...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages