diff --git a/apps/desktop/scripts/stage-native-deps.mjs b/apps/desktop/scripts/stage-native-deps.mjs index c55a8ed3ab..c811ce296b 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 6392b52a80..d7603f5a75 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 })