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

Can electron-builder create .pkg for Application Loader? #535

Closed
wonjun27 opened this issue Jun 23, 2016 · 9 comments · May be fixed by qcif/data-curator#563
Closed

Can electron-builder create .pkg for Application Loader? #535

wonjun27 opened this issue Jun 23, 2016 · 9 comments · May be fixed by qcif/data-curator#563

Comments

@wonjun27
Copy link

Can electron-builder create .pkg for Application Loader? Application Loader only accepts .pkg files to submit to iTunes Connect. Thanks

@develar
Copy link
Member

develar commented Jun 23, 2016

Set build.mac.target to mas. Or CLI: --osx mas.

@wonjun27
Copy link
Author

Thank you very much for the help @develar

When I run CLI: --osx mas,

I'm seeing the following error,

Error: Cannot find valid installer certificate: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing

although CSC_NAME is set in the envrionment,

printenv | grep CSC_NAME
CSC_NAME=3rd Party Mac Developer Installer: Wonjun Bae (*)

Thanks

@develar
Copy link
Member

develar commented Jun 24, 2016

@wonjun27 don't use CSC_NAME — I suppose you don't have several identities (not several certs, but identities — different Apple developer accounts), so, you can just nothing specify.

CSC_NAME=3rd Party Mac Developer Installer: Wonjun Bae (*)

Should be Wonjun Bae, because appropriate cert type will be selected automatically (2 different cert types are required to sign, electron-builder will select it automatically).

@wonjun27
Copy link
Author

@develar After I unset CSC_NAME with
unset CSC_NAME
I'm still getting the same error
Currently, I have these set on my Mac,

security find-identity -v

  1. 1E1E68E51E8A93896421D5694BE8CC49C987D253 "com.apple.idms.appleid.prd.4f69384c554949435a4a4851616c41525748663672413d3d"
  2. 4AB5866FEFC4480F3B26401455A793623370663C "com.apple.idms.appleid.prd.4f69384c554949435a4a4851616c41525748663672413d3d" (CSSMERR_TP_CERT_REVOKED)
  3. 084A9E8EB7C9BF30F97CBE108F46898E99485E7D "Won Jun Bae"
  4. 22E3B31630851A13937413EF8C1B8FC5C58852C1 "Mac Developer: Wonjun Bae (---)"
  5. 89CCCA0DDC284CD18D92A2C3745325CFCFC1766D "3rd Party Mac Developer Application: Wonjun Bae (---)"
  6. 7F0A051BD8C1FFC152FE93EA892437D23AF55161 "3rd Party Mac Developer Installer: Wonjun Bae (---)"
  7. 8B85FC9CA69F920C6DA38365C2FB9F03D0F05F19 "3rd Party Mac Developer Installer: Wonjun Bae (---)"
    7 valid identities found

Thanks

@develar develar reopened this Jun 26, 2016
@develar
Copy link
Member

develar commented Jun 26, 2016

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

@wonjun27
Copy link
Author

@develar Here is the current output from my Mac. Thank you.

security find-identity -v -p codesigning -p appleID

  1. 084A9E8EB7C9BF30F97CBE108F46898E99485E7D "Won Jun Bae"
  2. 22E3B31630851A13937413EF8C1B8FC5C58852C1 "Mac Developer: Wonjun Bae (---)"
  3. 89CCCA0DDC284CD18D92A2C3745325CFCFC1766D "3rd Party Mac Developer Application: Wonjun Bae (---)"
    3 valid identities found
  4. 1E1E68E51E8A93896421D5694BE8CC49C987D253 "com.apple.idms.appleid.prd.4f69384c554949435a4a4851616c41525748663672413d3d"
  5. 4AB5866FEFC4480F3B26401455A793623370663C "com.apple.idms.appleid.prd.4f69384c554949435a4a4851616c41525748663672413d3d" (CSSMERR_TP_CERT_REVOKED)
    2 valid identities found

@develar
Copy link
Member

develar commented Jun 26, 2016

Reproduced, fix will be today.

@wonjun27
Copy link
Author

@develar That worked great and I was able to submit the build to iTunes via Application Loader successfully. Thank you for the amazing support.

@DavidBurton79
Copy link

hello @develar

When i try to build pkg with mas it give me error "cannot find valid "3rd Party Mac Developer Application"

while i have associated certificates in my keychain and they are valid
Can you please help me

I am using below version
"electron": "1.6.11",
"electron-builder": "19.2.7",

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

Successfully merging a pull request may close this issue.

3 participants