Skip to content

Commit

Permalink
fix(mac): signing NSIS on mac (#8090)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta authored Mar 2, 2024
1 parent 18340ee commit 2c147ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-bobcats-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix(mac): sign NSIS on mac
18 changes: 11 additions & 7 deletions packages/app-builder-lib/src/codeSign/windowsCodeSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@ export async function sign(options: WindowsSignOptions, packager: WinPackager):
let isNest = false
for (const hash of hashes) {
const taskConfiguration: WindowsSignTaskConfiguration = { ...options, hash, isNest }
const config: CustomWindowsSignTaskConfiguration = {
...taskConfiguration,
computeSignToolArgs: isWin => computeSignToolArgs(taskConfiguration, isWin),
}
await Promise.resolve(executor(config, packager))
await Promise.resolve(
executor(
{
...taskConfiguration,
computeSignToolArgs: isWin => computeSignToolArgs(taskConfiguration, isWin),
},
packager
)
)
isNest = true
if (config.resultOutputPath != null) {
await rename(config.resultOutputPath, options.path)
if (taskConfiguration.resultOutputPath != null) {
await rename(taskConfiguration.resultOutputPath, options.path)
}
}

Expand Down

0 comments on commit 2c147ad

Please sign in to comment.