Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command failed when signing app #132

Closed
tatgean opened this issue May 4, 2017 · 4 comments
Closed

Command failed when signing app #132

tatgean opened this issue May 4, 2017 · 4 comments
Labels

Comments

@tatgean
Copy link
Contributor

tatgean commented May 4, 2017

....
electron-packager . $APP --platform=darwin --arch=x64 \
  --out dist \
  --ignore=build \
  --ignore=config/development.json \
  --overwrite \
  --prune \
  --icon=appicon.icns \
  --app-bundle-id="com.example.myapp" \
  --build-version=$BUILD --app-version=$VERSION \

electron-osx-sign "dist/myapp/myapp.app" \
  --identity="$DEVELOPER_KEY"

keep showing the following error:

Command failed: codesign --sign Developer ID Application: XXXXXXXXXX --force dist/myapp/myapp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework

where Developer ID Application: XXXXXXXXXX is a valid cert.

My electron-osx-sign version is 0.4.4 and electron-packager is 8.0.0

Anyone can help?
Thanks.

@sethlu sethlu added the question label May 6, 2017
@sethlu
Copy link
Contributor

sethlu commented May 6, 2017

Hi @tatgean, would you mind posting your debug log here with export DEBUG=electron-osx-sign* before running electron-osx-sign "dist/myapp/myapp.app" --identity="$DEVELOPER_KEY"? I'm not very sure what causes the issue.

Also, if there aren't multiple signing certs (beginning with Developer ID Application) in your default keychain I would recommend running electron-osx-sign "dist/myapp/myapp.app" and let electron-osx-sign find the matching identity.


security find-identity -v -p codesigning should display a list of valid certs for code signing. And the certificate Developer ID Application should be listed there.

This was referenced May 7, 2017
@tatgean
Copy link
Contributor Author

tatgean commented May 7, 2017

Please refer to this post.

It seems there are some problems with codesign on macOS 10.12. To address the issue,

  1. use the cert id instead of the cert name to sign the app.
  2. use --timestamp=none.

I've sent 2 pull requests, #133 and #134,
For me, using cert id( #134 ) just works for me,
but It seems there are some users reported using --timestamp=none works for them so I've sent another pull request( #133 ) to add the --timestamp-none option.

@sethlu
Copy link
Contributor

sethlu commented May 8, 2017

@tatgean thanks for suggesting the changes! I really like the solution #134 by calling codesign with the certificate id (40 hex digits), and potentially use that as a default if it works across the recent macOS versions? 👍
Ref: sethlu@d6be2dc

Regarding #133, I think an option for --timestamp may be exposed to the user so the timestamp server may be manually set in the future?

@sethlu sethlu closed this as completed in 2789bd7 May 21, 2017
sethlu added a commit that referenced this issue May 21, 2017
@sethlu
Copy link
Contributor

sethlu commented May 21, 2017

Hi @tatgean, I've just merged your recent PRs and a new version should be released shortly.
Thanks for posting the fixes for the cert issue! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants