@@ -197,7 +197,7 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
197
197
198
198
const filter = createFilter ( this . info . appDir , this . getParsedPatterns ( patterns , arch ) , ignoreFiles , rawFilter )
199
199
const promise = asarOptions == null ?
200
- copyFiltered ( this . info . appDir , appPath , filter , true )
200
+ copyFiltered ( this . info . appDir , appPath , filter , this . platform === Platform . WINDOWS )
201
201
: createAsarArchive ( this . info . appDir , resourcesPath , asarOptions , filter )
202
202
203
203
const promises = [ promise , unlinkIfExists ( path . join ( resourcesPath , "default_app.asar" ) ) , unlinkIfExists ( path . join ( appOutDir , "version" ) ) ]
@@ -301,7 +301,7 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
301
301
private async doCopyExtraFiles ( isResources : boolean , appOutDir : string , arch : Arch , customBuildOptions : DC ) : Promise < any > {
302
302
const base = isResources ? this . getResourcesDir ( appOutDir ) : this . platform === Platform . MAC ? path . join ( appOutDir , `${ this . appInfo . productFilename } .app` , "Contents" ) : appOutDir
303
303
const patterns = this . getFilePatterns ( isResources ? "extraResources" : "extraFiles" , customBuildOptions )
304
- return patterns == null || patterns . length === 0 ? null : copyFiltered ( this . projectDir , base , createFilter ( this . projectDir , this . getParsedPatterns ( patterns , arch ) ) )
304
+ return patterns == null || patterns . length === 0 ? null : copyFiltered ( this . projectDir , base , createFilter ( this . projectDir , this . getParsedPatterns ( patterns , arch ) ) , this . platform === Platform . WINDOWS )
305
305
}
306
306
307
307
private getParsedPatterns ( patterns : Array < string > , arch : Arch ) : Array < Minimatch > {
0 commit comments