Reputation: 1934
I created an electron application in node.js that runs well on my mac. But I tried to package it using
electron-package . --all
as shown here: https://github.com/electron-userland/electron-packager/
That runs successfully and makes apps for linux, mac, and windows.
Problems I'm running into:
The icon for the application is still the default electron one. I changed mainWindow to be this:
mainWindow = new BrowserWindow({
width: 800,
height: 600,
icon: file://${__dirname}/assets/img/mylogo.png
})
EDIT: Resolved this issue by running
electron-packager . --platform=mas --arch=x64 --icon=assets/img/app.icns --overwrite
(with tick marks around the icon path). What else am I missing to change the app icon?
On mac, when a user tries to open my app, they can't install because of this message:
"AppName" can't be opened because it is from an unidentified developer.
This is odd because there is a LICENSE file in the packaged .app folder that is made by Github. What's missing here?
On windows, when a user tries to open the app, they get this error:
node.dll is missing from this computer
This seems off because the user shouldn't have to install extra things just to get my application to work. Did I screw something else up here too?
Thanks.
Upvotes: 0
Views: 3105
Reputation: 5446
First of all, you should really try to avoid packing multiple questions into a single post.
(already answered yourself)
While electron-packager should in theory sign your apps (at least that's how I understand the respective readme entry), it seems your app has not been signed properly. Have you followed the tutorial that can be found at the github page?
Please check:
Upvotes: 4