mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-06 05:34:35 +00:00
electronize build /target Mac/Linux/Win does not create custom packaged executable #731
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SESA11057 on GitHub (Dec 9, 2021).
When I build my Electron.NET app with "electronize build /target Mac" and run on a Mac system, the menu at the top of the screen shows "Electron" as the title of the application. However, I'd think this is a "bug" of sorts, because most people will want the name of their own application to show up there. Shouldn't it be the default to build the application such that the product name listed in electron.manifest.json is used as the application name?
@danatcofo commented on GitHub (Dec 9, 2021):
electronize build /target osxis the proper command@bman46 commented on GitHub (Dec 9, 2021):
The application built using the
buildcommand will have a custom name and other settings. See @danatcofo comment for that command. When running using theelectronize startcommand, the executable will use a precompiled version of electron that has a default configuration of the name, logo, and toolbar.@SESA11057 commented on GitHub (Dec 9, 2021):
I tried both osx and mac as the target for the build command, and "Electron" still showed up as the menu name on a Mac, as seen here:
@bman46 commented on GitHub (Dec 9, 2021):
Did you set the productName under
electron.manifest.json?It is under the build section:
@danatcofo commented on GitHub (Dec 9, 2021):
ok....
I have these fields filled in and my app name shows up just fine.... They are defined by electron-builder I believe
@SESA11057 commented on GitHub (Dec 9, 2021):
Here's what I have in my electron.manifest.json file.
@SESA11057 commented on GitHub (Dec 9, 2021):
In reading over your posts, I think the disconnect I'm having is that even after compiling as /target osx, I'm still starting the app on the Mac using electronize start.
Per your posts above, that means I'm running with the precompiled Electron host at that point, rather than the custom packaged host created under the hood by electron-builder.
I'll retry it this evening, and avoid running using electronize start, and since it's working for you, I'll assume it will for me as well.
Thanks for the assistance.
@bman46 commented on GitHub (Dec 9, 2021):
The correct application should be packaged in a .dmg under yourproject/bin/Desktop/Application Full Name-version.dmg
The application in that dmg file is the direct result of the build command and must be built on a linux/mac computer (not windows).
@danatcofo commented on GitHub (Dec 9, 2021):
@SESA11057 correct, it will always be Electron when you use
electronize startnothing you need to do about that, when you build and run the packaged version output fromelectronize buildit will show the proper name.electronize startis intedended for development only and not production run.@jesseflikweert commented on GitHub (Mar 15, 2022):
@bman46 When I execute the command
electronize build /target osx /PublishReadyToRun falseon Ubuntu, it seems to build correctly (as the return text ends with...done). However, I can't find any .dmg file under myproject/bin/Desktop/. Doing the same for... /target win ...works as I'm seeing a setup .exe file here. You probably need more information of me, but do you maybe have any idea what could be going wrong here?@FlorianRappl commented on GitHub (Nov 1, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.