File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ async function validateFlatOpts (opts: FlatOptions): Promise<ValidatedFlatOption
39
39
install = '/Applications' ;
40
40
}
41
41
42
+ if ( typeof opts . scripts === 'string' && opts . platform === 'mas' ) {
43
+ debugWarn ( 'Mac App Store packages cannot have `scripts`, ignoring option.' ) ;
44
+ }
45
+
42
46
return {
43
47
...opts ,
44
48
pkg,
@@ -114,7 +118,10 @@ export async function buildPkg (_opts: FlatOptions) {
114
118
debugLog (
115
119
'Finding `3rd Party Mac Developer Installer` certificate for flattening app distribution in the Mac App Store...'
116
120
) ;
117
- identities = await findIdentities ( validatedOptions . keychain || null , '3rd Party Mac Developer Installer:' ) ;
121
+ identities = await findIdentities (
122
+ validatedOptions . keychain || null ,
123
+ '3rd Party Mac Developer Installer:'
124
+ ) ;
118
125
} else {
119
126
debugLog (
120
127
'Finding `Developer ID Application` certificate for distribution outside the Mac App Store...'
Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ type OnlyFlatOptions = {
220
220
* Path to a directory containing `preinstall.sh` or `postinstall.sh` scripts.
221
221
* These must be executable and will run on pre/postinstall depending on the file
222
222
* name.
223
+ *
224
+ * This option is only valid if {@link FlatOptions.platform} is set to `darwin`.
223
225
*/
224
226
scripts ?: string ;
225
227
} ;
You can’t perform that action at this time.
0 commit comments