fix(desktop): remove invalid get-windows recovery command

This commit is contained in:
Gille
2026-08-17 01:33:02 -06:00
parent 8f97ae9aec
commit 040ee114aa
2 changed files with 5 additions and 2 deletions
@@ -518,7 +518,6 @@ export function stageGetWindowsInto(
throw new Error(
`[stage-native-deps] get-windows has no win32-${arch} prebuilt binding under lib/binding. ` +
'Recover from the checkout root with:\n' +
' npm install-scripts approve get-windows\n' +
' npm rebuild get-windows'
)
}
@@ -505,7 +505,11 @@ test('win32 staging reports the recovery steps when the rebuild hook produces no
arch: 'x64',
rebuild: () => {}
}),
/npm rebuild get-windows/
(error) => {
assert.match(error.message, /npm rebuild get-windows/)
assert.doesNotMatch(error.message, /npm install-scripts/)
return true
}
)
} finally {
fs.rmSync(tmp, { recursive: true, force: true })