-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Platform: Mac App Store support #223
Conversation
sethlu
commented
Dec 20, 2015
- MAS platform support
- Entitlements (optional) are supported to sign apps, not just with a certificate
- Made it easier to sign for MAS distribution, may fallback to default entitlements file
@@ -18,7 +18,8 @@ var supportedPlatforms = { | |||
// Maps to module ID for each platform (lazy-required if used) | |||
darwin: './mac', | |||
linux: './linux', | |||
win32: './win32' | |||
win32: './win32', | |||
mas: './mac' // it is almost the same as the mac version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This map should be sorted alphabetically.
Please update the rest of the "darwin platform only" references to be "darwin/mas platforms only". |
Here's my opinion:
|
👍 - also, linking to the Electron docs would be helpful.
Yeah, me too. The problem I have is that I don't know what a reasonable way to programatically test this looks like.
👍 |
Agreed, it's a hard one. I think in place of proper tests the next best thing would be to put all the signing code into a new module, e.g. Is anyone up for writing + maintaining a |
Putting the codesign into a separated module for building and testing could be a nice track, as testing online proves hard for signing with certificates, needing manual help after all. I'll see if I could start a module integrating the OS X codesign command later.
|
Here's what I've got from today: https://github.com/sethlu/electron-sign |
@sethlu Wow!! Amazing work. That looks really good so far. I looked at the code and didn't see any obvious problems. It's great that you have a test suite and When you are ready, do you want to |
(Maybe electron-mac-sign or something, since Windows Electron apps also require signing?) |
@cjb is there any existing code for that? if if's not too hairy maybe it could live in |
@maxogden @cjb I've renamed the project to |
@sethlu excellent, sounds good, thanks! |
Regarding signing packages on Windows: #32 |
I'm not quite sure about the code signing for the Windows platform as I do most of my work on my Mac. |
@@ -27,7 +27,8 @@ | |||
"plist": "^1.1.0", | |||
"rcedit": "^0.3.0", | |||
"rimraf": "^2.3.2", | |||
"run-series": "^1.1.1" | |||
"run-series": "^1.1.1", | |||
"electron-osx-sign": "^0.1.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the dependency list alphabetized.
protip, if you use |
@maxogden Wow, thanks! I'll have it a try the next time I need to have the package description sorted. |
Oops, sorry I accidentally closed this. |
Indented for clarity in commits
Fix: ix electron/packager#261 Fix: electron/packager#163 Added filterCFBundleIdentifier function Properties to set in app plist - CFBundleDisplayName - CFBundleIdentifier - CFBundleName Properties to set in helper plist - CFBundleDisplayName - CFBundleIdentifier - CFBundleName - CFBundleExecutable In testing script: - Added testing with special characters
a22e476
to
5bb0c9a
Compare
@malept Just separated the commits to make each change clearer. Mind having another check? |
Once the |
Fix: maxogden#163
The latest version of Electron to best support `mas` build
@malept The |
@@ -137,6 +153,10 @@ packager(opts, function done (err, appPath) { }) | |||
|
|||
Valid values are listed in [Apple's documentation](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW8). | |||
|
|||
`app-copyright` - *String* | |||
|
|||
The copyrights string to use in the app plist, will be displayed in the application About box (OS X only). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"copyright", not "copyrights string". I'll fix this post-merge. (I'm doing #265 anyway.)
Excellent, I'm going to merge this later today.
Yes, @maxogden had a similar observation in a different PR: #253 (comment) |
@malept cool! After this I could join their discussions on plists, just to minimize the amount of code based on file modifications. |
Oops, forgot to merge this last night. I will do so now. Thanks @sethlu for all the work you've done on this pull request! |
Fantastic work guys! |