Electron-builder: Is it possible to change the name of an existing app?

Created on 29 Oct 2018  Â·  6Comments  Â·  Source: electron-userland/electron-builder

Hey @develar, thanks for your work on this repo! Couldn't find any existing issues about this, sorry to bother you with these questions.

I want to change the name of my app (as it appears to users); will changing productName in package.json be sufficient to change this?

Additionally, might I face any issues with Auto Update for existing users of my app (on Windows and macOS) if I do so?

question

Most helpful comment

@guanxun14 Yes. But please note that it is opensource project and I cannot guarantee that everything will work as expected. Just try.

All 6 comments

Yes, you can change productName and it will not affect auto-update. I am not sure 100% if you use Squirrel.Windows instead of NSIS, but should be ok.

Please note — recommended to set productName in electron-builder config, and not in root of package.json because otherwise Electron will use product name as path to app data.

Thank you for the quick info! Yes I'm on NSIS for Windows (should have thought to include that info in the original message).

To be sure I'm understanding you right: I should just add "productName": "NewAppName", to the build section (alongside appId) in my package.json — would that be correct?

@guanxun14 Yes. But please note that it is opensource project and I cannot guarantee that everything will work as expected. Just try.

Will do! Trying to make future plans for my app, so I thought to ask this in advance.

Thank you again for your time, I really appreciate it! :)

Was this page helpful?
0 / 5 - 0 ratings