Skip to content

Commit

Permalink
fix: pull resultOutputPath from CustomWindowsSignTaskConfiguration (
Browse files Browse the repository at this point in the history
fixes: #7910)
  • Loading branch information
mmaietta committed Dec 4, 2023
1 parent 8b91d31 commit 3339faf
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions packages/app-builder-lib/src/codeSign/windowsCodeSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,14 @@ export async function sign(options: WindowsSignOptions, packager: WinPackager):
let isNest = false
for (const hash of hashes) {
const taskConfiguration: WindowsSignTaskConfiguration = { ...options, hash, isNest }
await Promise.resolve(
executor(
{
...taskConfiguration,
computeSignToolArgs: isWin => computeSignToolArgs(taskConfiguration, isWin),
},
packager
)
)
const config: CustomWindowsSignTaskConfiguration = {
...taskConfiguration,
computeSignToolArgs: isWin => computeSignToolArgs(taskConfiguration, isWin),
}
await Promise.resolve(executor(config, packager))
isNest = true
if (taskConfiguration.resultOutputPath != null) {
await rename(taskConfiguration.resultOutputPath, options.path)
if (config.resultOutputPath != null) {
await rename(config.resultOutputPath, options.path)
}
}

Expand Down

0 comments on commit 3339faf

Please sign in to comment.