From 0cf536b67566a37708a866177ea389e8b6cb9ba0 Mon Sep 17 00:00:00 2001 From: suzmii Date: Mon, 28 Sep 2026 21:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=20--no-bundle=20=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E5=BC=BA=E5=88=B6=E9=9A=8F=E5=8C=85=E8=B5=84=E6=BA=90?= =?UTF-8?q?=20staging=EF=BC=8C=E5=B9=B6=E5=90=8C=E6=AD=A5=20CI=20=E5=88=86?= =?UTF-8?q?=E7=BB=84=E5=A5=91=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build-release.mjs:回到「只有出包(非 --no-bundle)才执行 staging」,修复 Linux 上只编译的 release smoke 因强制 staging 去够 Windows 上游包而失败(保留 staging 与 cargo 共用同一 feature 集,以及未覆盖目标的自然跳过) - scripts/project-ci-workflow.test.ts:check:web 分组新增 bundled-resources:test 后的精确命令串断言同步 --- apps/ai-game-creator-shell/scripts/build-release.mjs | 3 +-- scripts/project-ci-workflow.test.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/scripts/build-release.mjs b/apps/ai-game-creator-shell/scripts/build-release.mjs index 632356a94..40dbeb520 100644 --- a/apps/ai-game-creator-shell/scripts/build-release.mjs +++ b/apps/ai-game-creator-shell/scripts/build-release.mjs @@ -469,9 +469,8 @@ export function runTauriBuild( const features = resolveEditorFeatures({ argv: args, target }); if (!args.includes('--no-bundle')) { stageRuntime(target); + stageBundled(target, { features }); } - // app 构建本身就需要随包资源,因此 --no-bundle 也要 staging;只有总号发布是打包专属。 - stageBundled(target, { features }); const configPath = writeChannelConfigFile( channel, target, diff --git a/scripts/project-ci-workflow.test.ts b/scripts/project-ci-workflow.test.ts index 6f793634a..96935e9f6 100644 --- a/scripts/project-ci-workflow.test.ts +++ b/scripts/project-ci-workflow.test.ts @@ -696,7 +696,7 @@ describe('project CI workflow', () => { 'npm run ai-game-creator-shell:check:web && npm run ai-game-creator-shell:check:rust && npm run ai-game-creator-shell:agent-run:smoke', ); expect(rootPackageJson.scripts?.['ai-game-creator-shell:check:web']).toBe( - 'npm run ai-game-creator-shell:typecheck && npm run test -- apps/ai-game-creator-shell/tests', + 'npm run ai-game-creator-shell:typecheck && npm --prefix apps/ai-game-creator-shell run bundled-resources:test && npm run test -- apps/ai-game-creator-shell/tests', ); expect(rootPackageJson.scripts?.['ai-game-creator-shell:check:rust']).toBe( 'npm run ai-game-creator-shell:check:rust:crates && npm run ai-game-creator-shell:check:rust:shell',