File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ security.packageHashSync = function (jsonData) {
69
69
log . debug ( 'packageHashSync manifestData:' , manifestData ) ;
70
70
var manifestString = JSON . stringify ( manifestData . sort ( ) ) ;
71
71
manifestString = _ . replace ( manifestString , / \\ \/ / g, '/' ) ;
72
- log . debug ( 'packageHashSync manifestString:' , manifestData ) ;
72
+ log . debug ( 'packageHashSync manifestString:' , manifestString ) ;
73
73
return security . stringSha256Sync ( manifestString ) ;
74
74
}
75
75
@@ -202,6 +202,10 @@ security.calcAllFileSha256 = function (directoryPath) {
202
202
var data = { } ;
203
203
_ . forIn ( results , ( value , key ) => {
204
204
var relativePath = path . relative ( directoryPath , key ) ;
205
+ var matchresult = relativePath . match ( / ( \/ | \\ ) .* / ) ;
206
+ if ( matchresult ) {
207
+ relativePath = path . join ( 'CodePush' , matchresult [ 0 ] ) ;
208
+ }
205
209
relativePath = slash ( relativePath ) ;
206
210
data [ relativePath ] = value ;
207
211
} ) ;
You can’t perform that action at this time.
0 commit comments