question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

osxSign is not supported until Electron Packager 8.6.0

See original GitHub issue
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue: i’m trying to sign my app on mac, as electron-packager documentation says setting osxSign:true should sign app after packaging here is my config:

"electronPackagerConfig": {
        "name": "SomeAppName",
        "icon": "./res/icon.icns",
        "osxSign": true
      },

for example name and icon properties work correctly but setting osxSign does not do anything

btw running signing command manually works correctly too:

electron-osx-sign "./out/myapp-darwin-x64/myapp.app" --platform=darwin --type=development

can anyone suggest anything?

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.

electron-forge:packager packaging with options { asar: false,
  overwrite: true,
  name: 'Ublend',
  icon: './res/icon.icns',
  osxSign: true,
  afterCopy: [ [Function], [Function], [Function], [Function] ],
  afterExtract: [],
  dir: '/Users/GURO/ublend/ublend-electron-app',
  arch: 'x64',
  platform: 'darwin',
  out: '/Users/GURO/ublend/ublend-electron-app/out',
  electronVersion: '1.4.15',
  quiet: true } +9ms
  electron-forge:lifecycle Process Succeeded: Preparing to Package Application for arch: x64 +12s
  electron-forge:lifecycle Process Started: Compiling Application +2ms
  electron-forge:lifecycle Process Succeeded: Compiling Application +919ms
  electron-forge:lifecycle Process Started: Preparing native dependencies +1ms
  electron-forge:lifecycle Process Succeeded: Preparing native dependencies +104ms
  electron-forge:lifecycle Process Started: Packaging Application +0ms
  electron-forge:lifecycle Process Succeeded: Packaging Application +8s

What command line arguments are you passing?

nothing

What does your config.forge data in package.json look like?

 "config": {
    "forge": {
      "make_targets": {
        "win32": [
          "squirrel"
        ],
        "darwin": [
          "dmg","zip"
        ],
        "linux": [
          "deb",
          "rpm"
        ]
      },
      "electronPackagerConfig": {
        "name": "MyApp",
        "icon": "./res/icon.icns",
        "osxSign": true
      },
      "electronWinstallerConfig": {
        "name": ""
      },
      "electronInstallerDebian": {},
      "electronInstallerRedhat": {},
      "github_repository": {
        "owner": "",
        "name": ""
      },
      "windowsStoreConfig": {
        "packageName": ""
      }
    }
  }

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-forge init is a good starting point, if that is not the source of your problem.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
joshuapintercommented, May 23, 2018

@onassar Thank you so much for clarifying this. I felt like I was taking crazy pills looking for this. I suppose that’s what happens when you have a umbrella framework that is puppeteering all of these other libraries and you have to go spelunking through each library to find what configuration is required.

Anyway, your config worked great. Mine ended up looking like this:

"electronPackagerConfig": {
  "osxSign": {
    "identity": "Developer ID Application: Joshua Pinter (<my_id>)"
  }
}
3reactions
onassarcommented, May 23, 2018

Great to hear @joshuapinter Ya you’re right on. What I find frustrating is that it’s really easy to get started with Electron, but really hard to put together all the pieces to deliver a polished (and functional and tested) app. I think it’s due to your point: umbrella framework that is doing an amazing job pulling together all the pieces, but alas, still juggling so many things that it requires us to go deep in a lot of different areas.

Good luck 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

osxSign is not supported until Electron Packager 8.6.0 #162
osxSign is not supported until Electron Packager 8.6.0 #162 ... i'm trying to sign my app on mac, as electron-packager documentation says ...
Read more >
electron-osx-sign is not working - Stack Overflow
I'm trying to sign my electron app using electron-osx-sign: electron-packager . $APP --platform=darwin --arch=x64 \ --out dist ...
Read more >
electron-osx-sign - npm
The app is not expected to run after codesigning since there is no provisioned device, and it is intended only for submission to...
Read more >
Electron packager tutorial - Christian Engvall
In this electron packager tutorial we will look at how to create MacOS, Windows and Linux executables with an app icon.
Read more >
electron-packager: Versions | Openbase
Full version history for electron-packager including change logs. ... Windows to not work as intended (#1071); Always initialize proxy support when running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found