固定桌面壳本地产物收集路径

桌面壳 release 二进制复制到根 build/native/desktop

根级原生壳门禁验证 staged 桌面二进制产物

同步原生壳方案文档和共享决策记录
This commit is contained in:
2026-06-20 21:25:12 +08:00
parent c578f6cf29
commit fa32459f12
7 changed files with 125 additions and 16 deletions
+11 -8
View File
@@ -1004,6 +1004,11 @@ const steps = [
command: npmCommand,
args: ['run', 'desktop-shell:build', '--', '--no-bundle'],
},
{
label: 'desktop-shell-stage-release-binary',
command: npmCommand,
args: ['run', 'desktop-shell:stage-release-binary'],
},
];
function shouldScanProductionShellFile(filePath) {
@@ -2904,18 +2909,16 @@ function assertHostBridgeLayerLayout() {
}
function assertDesktopReleaseBinaryArtifact() {
const releaseDir = path.join(
'apps',
'desktop-shell',
'src-tauri',
'target',
'release',
);
const executableName =
process.platform === 'win32'
? 'genarrative-desktop-shell.exe'
: 'genarrative-desktop-shell';
const executablePath = path.join(releaseDir, executableName);
const executablePath = path.join(
'build',
'native',
'desktop',
executableName,
);
if (!fs.existsSync(executablePath)) {
throw new Error(`desktop release binary is missing: ${executablePath}`);