Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Info.plist indicates an iOS app, but submitting .pkg

Tags:

macos

electron

I'm getting an error trying to use Application Loader to upload a packaged electron app.

I use electron-packager to package the app with the mas (Mac App Store) platform. I then zipped up the output directory. When I try I to select this .zip file with Application Loader, it gives me this error.

like image 593
Ben Lorantfy Avatar asked Nov 17 '16 17:11

Ben Lorantfy


1 Answers

You need to pack you .app file into a signed .pkg, which you can upload using Application Loader.

Use the following command to create a signed .pkg file:

productbuild --component YOURAPPNAME.app/ /Applications --sign "3rd Party Mac Developer Installer: YOURCOMPANYNAME (YOURTEAMID)" --product YOURAPPNAME.app/Contents/Info.plist YOURAPPNAME.pkg

For this to work, you'll need a Mac Installer Certificate, which you can generate from the Apple Developer website. When creating the certificate choose Mac App Store and then Mac Installer Distribution.

like image 156
Nikolaj Avatar answered Oct 13 '22 23:10

Nikolaj