Skip to content

Commit 7268c2e

Browse files
authored
chore: Rename vmRequired variable to useVmIfNotOnWin (#8727)
1 parent 6633450 commit 7268c2e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/shy-pumas-attack.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
chore: Rename `vmRequired` variable to `useVmIfNotOnWin`

packages/app-builder-lib/src/codeSign/windowsSignToolManager.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ export class WindowsSignToolManager implements SignManager {
438438
let args: Array<string>
439439
let env = process.env
440440
let vm: VmManager
441-
const vmRequired = configuration.path.endsWith(".appx") || !("file" in configuration.cscInfo!) /* certificateSubjectName and other such options */
442-
const isWin = process.platform === "win32" || vmRequired
441+
const useVmIfNotOnWin = configuration.path.endsWith(".appx") || !("file" in configuration.cscInfo!) /* certificateSubjectName and other such options */
442+
const isWin = process.platform === "win32" || useVmIfNotOnWin
443443
const toolInfo = await this.getToolPath(isWin)
444444
const tool = toolInfo.path
445-
if (vmRequired) {
445+
if (useVmIfNotOnWin) {
446446
vm = await packager.vm.value
447447
args = this.computeSignToolArgs(configuration, isWin, vm)
448448
} else {

0 commit comments

Comments
 (0)