You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path to additional binaries that will be signed along with built-ins of Electron.
152
149
Default to `undefined`.
153
150
154
-
`entitlements` - *String*
155
-
156
-
Path to entitlements file for signing the app.
157
-
Default to built-in entitlements file, Sandbox enabled for Mac App Store platform.
158
-
See [default.entitlements.mas.plist](https://github.com/electron-userland/electron-osx-sign/blob/master/default.entitlements.mas.plist) or [default.entitlements.darwin.plist](https://github.com/electron-userland/electron-osx-sign/blob/master/default.entitlements.darwin.plist) with respect to your platform.
159
-
160
-
`entitlements-inherit` - *String*
161
-
162
-
Path to child entitlements which inherit the security settings for signing frameworks and bundles of a distribution. *This option only applies when signing with entitlements.*
163
-
See [default.entitlements.mas.inherit.plist](https://github.com/electron-userland/electron-osx-sign/blob/master/default.entitlements.mas.inherit.plist) or [default.entitlements.darwin.inherit.plist](https://github.com/electron-userland/electron-osx-sign/blob/master/default.entitlements.darwin.inherit.plist) with respect to your platform.
151
+
`optionsForFile` - *Function*
164
152
165
-
`entitlements-loginhelper` - *String*
153
+
Function that receives the path to a file and can return the entitlements to use for that file to override the default behavior. The
154
+
object this function returns can include any of the following optional keys.
166
155
167
-
Path to login helper entitlement file. When using App Sandbox, the inherited entitlement should not be used since this is a standalone executable. *This option only applies when signing with entitlements.*
168
-
Default to the same entitlements file used for signing the app bundle.
169
-
170
-
`entitlementsForFile` - *Function*
171
-
172
-
Function that receives the path to a file and the current codesign arguments as parameters. If you wish to override the entitlements used for this file path this function should return the absolute path to a different entitlements file.
|`entitlements`| String specifying the path to an `entitlements.plist` file. Will default to built-in entitlements files. Can also be an array of entitlement keys that osx-sign will write to an entitlements file for you. |`'path/to/entitlements'`|
159
+
|`hardenedRuntime`| Boolean flag to enable the Hardened Runtime when signing the app. Enabled by default. |`false`|
160
+
|`requirements`| String specifying the [requirements](https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html) that you recommend to be used to evaluate the code signature. |`'anchor apple or anchor = "/var/db/yourcorporateanchor.cert"'`|
161
+
|`signatureFlags`| List of [code signature flags](https://developer.apple.com/documentation/security/seccodesignatureflags?language=objc). Accepts an array of strings or a comma-separated string. |`['kSecCodeSignatureRestrict']`|
162
+
|`timestamp`| String specifying the URL of the timestamp authority server. Defaults to the server provided by Apple. Please note that this default server may not support signatures not furnished by Apple. Disable the timestamp service with `none`. |`'https://different.timeserver'`|
173
163
174
164
**Note:** Only available via the JS API
175
165
176
-
`gatekeeper-assess` - *Boolean*
177
-
178
-
Flag to enable/disable Gatekeeper assessment after signing the app. Disabling it is useful for signing with self-signed certificates.
179
-
Gatekeeper assessment is enabled by default on `darwin` platform.
180
-
Default to `true`.
181
-
182
166
`hardenedRuntime` or `hardened-runtime` - *Boolean*
183
167
184
168
Flag to enable the Mojave hardened runtime when signing the app. Disabled by default, requires Xcode >= 10 and
@@ -191,7 +175,7 @@ Default to be selected with respect to `provisioning-profile` and `platform` fro
191
175
192
176
Signing platform `mas` will look for `3rd Party Mac Developer Application: * (*)`, and platform `darwin` will look for `Developer ID Application: * (*)` by default.
193
177
194
-
`identity-validation` - *Boolean*
178
+
`identityValidation` - *Boolean*
195
179
196
180
Flag to enable/disable validation for the signing identity. If enabled, the `identity` provided will be validated in the `keychain` specified.
197
181
Default to `true`.
@@ -213,49 +197,27 @@ Build platform of Electron.
213
197
Allowed values: `darwin`, `mas`.
214
198
Default to auto detect by presence of `Squirrel.framework` within the application bundle.
215
199
216
-
`pre-auto-entitlements` - *Boolean*
200
+
`preAutoEntitlements` - *Boolean*
217
201
218
202
Flag to enable/disable automation of `com.apple.security.application-groups` in entitlements file and update `Info.plist` with `ElectronTeamID`.
219
203
Default to `true`.
220
204
221
-
`pre-embed-provisioning-profile` - *Boolean*
205
+
`preEmbedProvisioningProfile` - *Boolean*
222
206
223
207
Flag to enable/disable embedding of provisioning profile in the current working directory.
224
208
Default to `true`.
225
209
226
-
`provisioning-profile` - *String*
210
+
`provisioningProfile` - *String*
227
211
228
212
Path to provisioning profile.
229
213
230
-
`requirements` - *String*
231
-
232
-
Specify the criteria that you recommend to be used to evaluate the code signature.
233
-
See more info from https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html
234
-
Default to `undefined`.
235
-
236
-
`restrict` - *Boolean*
237
-
238
-
**To be deprecated, see `signature-flags`.**
239
-
Restrict dyld loading. See doc about this [code signature flag](https://developer.apple.com/documentation/security/seccodesignatureflags/kseccodesignaturerestrict?language=objc) for more details. Disabled by default.
240
-
241
-
`signature-flags` - *String*
242
-
Comma separated string or array for [code signature flag](https://developer.apple.com/documentation/security/seccodesignatureflags?language=objc). Default to `undefined`.
243
-
244
-
`signature-size` - *Number*
245
-
Provide a value to be passed to `codesign` along with the `--signature-size` flag, to work around the *signature too large to embed* issue. A value of `12000` should do it - see the [FAQ](https://github.com/electron/electron-osx-sign/wiki/FAQ) for details. Default to `undefined`.
246
-
247
-
`strict-verify` - *Boolean|String|Array.<String>*
214
+
`strictVerify` - *Boolean|String|Array.<String>*
248
215
249
216
Flag to enable/disable `--strict` flag when verifying the signed application bundle.
250
217
If provided as a string, each component should be separated with comma (`,`).
251
218
If provided as an array, each item should be a string corresponding to a component.
252
219
Default to `true`.
253
220
254
-
`timestamp` - *String*
255
-
256
-
Specify the URL of the timestamp authority server, default to server provided by Apple. Please note that this default server may not support signatures not furnished by Apple.
257
-
Disable the timestamp service with `none`.
258
-
259
221
`type` - *String*
260
222
261
223
Specify whether to sign app for development or for distribution.
@@ -354,7 +316,7 @@ Default to be selected with respect to `platform` from `keychain` or keychain by
354
316
355
317
Flattening platform `mas` will look for `3rd Party Mac Developer Installer: * (*)`, and platform `darwin` will look for `Developer ID Installer: * (*)` by default.
356
318
357
-
`identity-validation` - *Boolean*
319
+
`identityValidation` - *Boolean*
358
320
359
321
Flag to enable/disable validation for signing identity. If enabled, the `identity` provided will be validated in the `keychain` specified.
0 commit comments