-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Ability to set author/CompanyName programmatically #455
Comments
Thanks for detailed explanation.
Just set |
So I tried adding the "author" field to devMetadata as suggested but no luck. I managed to get it to work though after looking through the electron-builder code a little bit and experimenting. In case anyone else runs across this, here's what I did:
That worked right for the description however I was getting an error on the CompanyName value. In my
with this:
Now setting the company name and description works perfectly. Thanks @develar for the assistance and all the work on a great tool! |
Reopened — of course author should be specified in the app package.json — |
|
appMetadata has no company property |
So I'm using electron-builder programmatically in a script because we build the same app with multiple whitelabeled builds, each with unique branding (icons, app name, etc). This allows me to simply run the script with the name of the app that I want to build and electron-builder builds it the requested way.
This all works great with the exception of author/CompanyName, causing my Windows apps to install under "Undefined" company (because in package.json my author is simply ""). As far as I can tell the only way to set that is to set it in the package.json, which of course would make the company name/author the same for all of our whitelabeled apps, and there isn't really a good author name that will work for everyone.
Would that be something that could be added to be specified in the programmatic API?
Alternatively not installing the app under an author subdirectory at all would be acceptable (basically being able to leave author/CompanyName out completely).
The text was updated successfully, but these errors were encountered: