fix(pi): verify Linux compatibility executable

This commit is contained in:
2026-08-24 14:34:55 +08:00
parent 641f6636b6
commit a795e0c970
2 changed files with 4 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import {
} from '../probe-pi-packaged-runtime.mjs';
const PRODUCT_NAME = 'Makelore';
const LINUX_EXECUTABLE_NAME = 'niancode';
const EXTENSION_CONTRACT_MARKERS = Object.freeze([
'Makelore runtime bridge rejected the request',
'subagent.dispatch',
@@ -79,7 +80,7 @@ export function defaultProductExecutable(projectRoot, currentPlatform = hostPlat
return join(root, 'release', 'mac', `${PRODUCT_NAME}.app`, 'Contents', 'MacOS', PRODUCT_NAME);
}
if (currentPlatform === 'linux') {
return join(root, 'release', 'linux-unpacked', PRODUCT_NAME.toLowerCase());
return join(root, 'release', 'linux-unpacked', LINUX_EXECUTABLE_NAME);
}
throw new Error(`Unsupported product artifact platform: ${currentPlatform}`);
}