@@ -133,6 +133,20 @@ class Applesign {
133
133
}
134
134
}
135
135
136
+ async adjustAllInfoPlists ( ) {
137
+ const infoPlistPath = path . join ( this . config . appdir , 'Info.plist' ) ;
138
+ adjustInfoPlist ( infoPlistPath , this . config , this . emit . bind ( this ) ) ;
139
+ const ls = new AppDirectory ( ) ;
140
+ const res = await ls . loadFromDirectory ( this . config . appdir ) ;
141
+ for ( let appex of ls . appexs ) {
142
+ const lidx = appex . lastIndexOf ( '/' ) ;
143
+ if ( lidx !== - 1 ) {
144
+ const plistPath = path . join ( appex . substring ( 0 , lidx ) , 'Info.plist' ) ;
145
+ adjustInfoPlist ( plistPath , this . config , this . emit . bind ( this ) ) ;
146
+ }
147
+ }
148
+ }
149
+
136
150
async signAppDirectory ( ipadir , skipNested ) {
137
151
fchk ( arguments , [ 'string' , 'boolean' ] ) ;
138
152
await this . _pullMobileProvision ( ) ;
@@ -162,8 +176,7 @@ class Applesign {
162
176
if ( this . config . insertLibrary !== undefined ) {
163
177
await insertLibrary ( this . config ) ;
164
178
}
165
- const infoPlistPath = path . join ( this . config . appdir , 'Info.plist' ) ;
166
- adjustInfoPlist ( infoPlistPath , this . config , this . emit . bind ( this ) ) ;
179
+ await this . adjustAllInfoPlists ( ) ;
167
180
if ( ! this . config . pseudoSign ) {
168
181
if ( ! this . config . mobileprovision ) {
169
182
throw new Error ( 'warning: No mobile provisioning file provided' ) ;
0 commit comments