Skip to content

The agent that grows with you

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

Gille040ee114aa12
diff --git a/apps/desktop/scripts/stage-native-deps.mjs b/apps/desktop/scripts/stage-native-deps.mjs
index c55a8ed3ab8..c811ce296b5 100644
--- a/apps/desktop/scripts/stage-native-deps.mjs
+++ b/apps/desktop/scripts/stage-native-deps.mjs
@@ -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'
)
}
diff --git a/apps/desktop/scripts/stage-native-deps.test.mjs b/apps/desktop/scripts/stage-native-deps.test.mjs
index 6392b52a807..d7603f5a754 100644
--- a/apps/desktop/scripts/stage-native-deps.test.mjs
+++ b/apps/desktop/scripts/stage-native-deps.test.mjs
@@ -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 })