@@ -134,41 +134,32 @@ export default class MacPackager extends PlatformPackager<MacOptions> {
134
134
} , ( < any > this . devMetadata . build ) [ "osx-sign" ] , baseSignOptions )
135
135
136
136
const resourceList = await this . resourceList
137
+ if ( resourceList . includes ( `entitlements.osx.plist` ) ) {
138
+ throw new Error ( "entitlements.osx.plist is deprecated name, please use entitlements.mac.plist" )
139
+ }
140
+ if ( resourceList . includes ( `entitlements.osx.inherit.plist` ) ) {
141
+ throw new Error ( "entitlements.osx.inherit.plist is deprecated name, please use entitlements.mac.inherit.plist" )
142
+ }
137
143
138
144
const customSignOptions = masOptions || this . platformSpecificBuildOptions
139
145
if ( customSignOptions . entitlements != null ) {
140
146
signOptions . entitlements = customSignOptions . entitlements
141
147
}
142
148
else {
143
- let p = `entitlements.${ masOptions == null ? "osx " : "mas" } .plist`
149
+ const p = `entitlements.${ masOptions == null ? "mac " : "mas" } .plist`
144
150
if ( resourceList . includes ( p ) ) {
145
- warn ( "entitlements.osx.plist is deprecated name, please use entitlements.mac.plist" )
146
151
signOptions . entitlements = path . join ( this . buildResourcesDir , p )
147
152
}
148
-
149
- if ( masOptions == null ) {
150
- p = `entitlements.mac.plist`
151
- if ( resourceList . includes ( p ) ) {
152
- signOptions . entitlements = path . join ( this . buildResourcesDir , p )
153
- }
154
- }
155
153
}
156
154
157
155
if ( customSignOptions . entitlementsInherit != null ) {
158
156
signOptions [ "entitlements-inherit" ] = customSignOptions . entitlementsInherit
159
157
}
160
158
else {
161
- let p = `entitlements.${ masOptions == null ? "osx " : "mas" } .inherit.plist`
159
+ const p = `entitlements.${ masOptions == null ? "mac " : "mas" } .inherit.plist`
162
160
if ( resourceList . includes ( p ) ) {
163
- warn ( "entitlements.osx.inherit.plist is deprecated name, please use entitlements.mac.inherit.plist" )
164
161
signOptions [ "entitlements-inherit" ] = path . join ( this . buildResourcesDir , p )
165
162
}
166
- if ( masOptions == null ) {
167
- p = `entitlements.mac.inherit.plist`
168
- if ( resourceList . includes ( p ) ) {
169
- signOptions [ "entitlements-inherit" ] = path . join ( this . buildResourcesDir , p )
170
- }
171
- }
172
163
}
173
164
174
165
await task ( `Signing app (identity: ${ name } )` , this . doSign ( signOptions ) )
0 commit comments