Skip to content

Commit e6312cb

Browse files
authored
fix(win): Include swiftshader in signing directories for windows (#6682)
1 parent 93181a7 commit e6312cb

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.changeset/lucky-mice-smell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
fix(signing): Include swiftshader in signing directories for windows

packages/app-builder-lib/src/winPackager.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,11 @@ export class WinPackager extends PlatformPackager<WindowsConfiguration> {
392392
return
393393
}
394394

395-
const outResourcesDir = path.join(packContext.appOutDir, "resources", "app.asar.unpacked")
396-
// noinspection JSUnusedLocalSymbols
397-
const fileToSign = await walk(outResourcesDir, (file, stat) => stat.isDirectory() || file.endsWith(".exe") || (this.isSignDlls() && file.endsWith(".dll")))
398-
await BluebirdPromise.map(fileToSign, file => this.sign(file), { concurrency: 4 })
395+
const signPromise = (filepath: string[]) => {
396+
const outDir = path.join(packContext.appOutDir, ...filepath)
397+
return walk(outDir, (file, stat) => stat.isDirectory() || file.endsWith(".exe") || (this.isSignDlls() && file.endsWith(".dll")))
398+
}
399+
const filesToSign = await Promise.all([signPromise(["resources", "app.asar.unpacked"]), signPromise(["swiftshader"])])
400+
await BluebirdPromise.map(filesToSign.flat(1), file => this.sign(file), { concurrency: 4 })
399401
}
400402
}

0 commit comments

Comments
 (0)