@@ -114,6 +114,20 @@ class Applesign {
114
114
}
115
115
}
116
116
117
+ async adjustAllInfoPlists ( ) {
118
+ const infoPlistPath = path . join ( this . config . appdir , 'Info.plist' ) ;
119
+ adjustInfoPlist ( infoPlistPath , this . config , this . emit . bind ( this ) ) ;
120
+ const ls = new AppDirectory ( ) ;
121
+ const res = await ls . loadFromDirectory ( this . config . appdir ) ;
122
+ for ( let appex of ls . appexs ) {
123
+ const lidx = appex . lastIndexOf ( '/' ) ;
124
+ if ( lidx !== - 1 ) {
125
+ const plistPath = path . join ( appex . substring ( 0 , lidx ) , 'Info.plist' ) ;
126
+ adjustInfoPlist ( plistPath , this . config , this . emit . bind ( this ) ) ;
127
+ }
128
+ }
129
+ }
130
+
117
131
async signAppDirectory ( ipadir , skipNested ) {
118
132
fchk ( arguments , [ 'string' , 'boolean' ] ) ;
119
133
this . _pullMobileProvision ( ) ;
@@ -143,8 +157,7 @@ class Applesign {
143
157
if ( this . config . insertLibrary !== undefined ) {
144
158
await insertLibrary ( this . config ) ;
145
159
}
146
- const infoPlistPath = path . join ( this . config . appdir , 'Info.plist' ) ;
147
- adjustInfoPlist ( infoPlistPath , this . config , this . emit . bind ( this ) ) ;
160
+ await this . adjustAllInfoPlists ( ) ;
148
161
if ( ! this . config . pseudoSign ) {
149
162
if ( ! this . config . mobileprovision ) {
150
163
throw new Error ( 'warning: No mobile provisioning file provided' ) ;
0 commit comments