Skip to content

Commit

Permalink
fix: sequential win signing
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 2, 2022
1 parent f8d0fb1 commit bd68bcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/pack/win.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-await-in-loop */
import {Command, Flags} from '@oclif/core'
import {Interfaces} from '@oclif/core'
import * as path from 'path'
Expand Down Expand Up @@ -231,7 +232,7 @@ the CLI should already exist in a directory named after the CLI that is the root
const {config} = buildConfig
await Tarballs.build(buildConfig, {platform: 'win32', pack: false, tarball: flags.tarball, parallel: true})
const arches = buildConfig.targets.filter(t => t.platform === 'win32').map(t => t.arch)
await Promise.all(arches.map(async arch => {
for (const arch of arches) {
const installerBase = path.join(buildConfig.tmp, `windows-${arch}-installer`)
await fs.promises.rm(installerBase, {recursive: true, force: true})
await fs.promises.mkdir(path.join(installerBase, 'bin'), {recursive: true})
Expand All @@ -257,7 +258,7 @@ the CLI should already exist in a directory named after the CLI that is the root
} else this.debug('Skipping windows exe signing')

this.log(`built ${o}`)
}))
}
}

private async checkForNSIS() {
Expand Down

0 comments on commit bd68bcf

Please sign in to comment.