Nick
Nick

Reputation: 1934

Electron packaging apps issues- license and node.dll

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:

  1. 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?

  1. 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?

  1. 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

Answers (1)

Jens Habegger
Jens Habegger

Reputation: 5446

First of all, you should really try to avoid packing multiple questions into a single post.

  1. (already answered yourself)

  2. 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?

  3. Please check:

    • Did you copy the whole directory before executing or just the executable? (Electron executables are not self-contained)
    • Can you make sure that the node.dll can be found somewhere within the applications folder or within its subdirectories?

Upvotes: 4

Related Questions