Electron-builder: Builder attempts to sign OSX app even though no signing is specified

Created on 10 Jun 2016  Â·  9Comments  Â·  Source: electron-userland/electron-builder

How does one disable OSX code signing, is there an option for this?

bug mac

Most helpful comment

Workaround: set env CSC_IDENTITY_AUTO_DISCOVERY=false. (version 5.0.3+).

All 9 comments

Attempt and failed or you just want to not sign using your identity?

Same here!
I just don't want to sign the app at all.

node_modules/.bin/build --osx
Rebuilding app dependencies for arch x64 to /Users/rafajaques/Node/php-assistant/app

...

Packaging app for platform darwin x64 using electron 1.2.2 to dist/osx
Signing app (identity: ghconduit.com)
Error: Command failed: codesign --sign ghconduit.com --force /Users/rafajaques/Node/php-assistant/dist/osx/PHP Assistant.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
ghconduit.com: this identity cannot be used for signing code

Workaround: set env CSC_IDENTITY_AUTO_DISCOVERY=false. (version 5.0.3+).

Nice!
export CSC_IDENTITY_AUTO_DISCOVERY=false worked.
Thanks!

It is only and only temp workaround. It is bug — we must use only -p codesigning -p appleID certs.

@rafajaques Please attach here result security find-identity -v -p codesigning -p appleID

     0 valid identities found
  1) 13E78D815D7[...]18344D42 "ghconduit.com" (Missing required extension)
     1 valid identities found

So what is the option we must add to our package.json to not codesign?

@kunkinkan No option, invalid certs filtered out automatically. To not use valid certs, see https://github.com/electron-userland/electron-builder/issues/481#issuecomment-225169080

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lbssousa picture lbssousa  Â·  3Comments

JohnWeisz picture JohnWeisz  Â·  3Comments

mstralka picture mstralka  Â·  3Comments

leo picture leo  Â·  3Comments

iklemm picture iklemm  Â·  3Comments