WIP: AGC 随包资源 staging 归位:统一跨平台构建目标与增量缓存(#519) #520
Draft
suzmii
wants to merge 32 commits from
fix/agc-rust-staging-idempotency into master
pull from: fix/agc-rust-staging-idempotency
merge into: GenarrativeAI:master
GenarrativeAI:master
GenarrativeAI:codex/game-rating-review
GenarrativeAI:opt/admin-sort-project
GenarrativeAI:refactor/remove-toolcall.jsonl-legacy
GenarrativeAI:feat/ui-editor-model-override
GenarrativeAI:fix/agc-release-gate-channel
GenarrativeAI:fix/dev-loopback-token-trust
GenarrativeAI:feat/tribo3d-integeration
GenarrativeAI:opt/test-compile-warning
GenarrativeAI:fix/api-timeout
GenarrativeAI:codex/admin-gray-game-publish
GenarrativeAI:codex/remove-agc-codex-restrictions
GenarrativeAI:feat/gptimage2to2.5
GenarrativeAI:backup/agc-macos-dualarch-node-runtime
GenarrativeAI:feat/Crt_Ws
GenarrativeAI:codex/preview-llm-router-config
GenarrativeAI:fix/stroke-width-regression-from-285
GenarrativeAI:agent-organize
GenarrativeAI:feat/game-agent-canvas-resource-workbench-v2
GenarrativeAI:feat/agc-new-workflow
GenarrativeAI:fix/agc-release-version-sync
GenarrativeAI:codex/shared-components-followup
GenarrativeAI:codex/game-agent-runtime-interaction-design
GenarrativeAI:feat/spine-sequence-export-v2
GenarrativeAI:codex/game-agent-run
GenarrativeAI:codex/ui-spritesheet-durable-transaction-latest
GenarrativeAI:feat/art-agent-more-tools
GenarrativeAI:codex/editor-canvas-null-source-repair
GenarrativeAI:hotfix/editor-layout-2mib
GenarrativeAI:codex/showcase
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: GenarrativeAI/Genarrative#520
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "fix/agc-rust-staging-idempotency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
将 AGC(
apps/ai-game-creator-shell)的随包资源从 Cargobuild.rs构建期写入迁移为构建前 staging,消除“产物同时作为 Cargo 构建输入”的 stale 依赖,减少无意义的重复编译,并统一 dev、release、--no-bundle与 Rust 只读校验的资源边界。关联 Issue:#519
技术方案:
docs/technical/【技术方案】AGC随包资源staging归位-2026-09-26.md本次实现
1. 单一声明与 staging
src-tauri/build_support/package-layout.json作为随包资源唯一人工声明。2. 构建入口
tauri dev:先准备随包资源,再启动 Vite,避免 Windows 监听目录导致 renameEPERM。tauri build:先准备资源,再执行 Cargo/Tauri 构建;build.rs只读校验,不再生成随包资源。--no-bundle:Windows/macOS 仍准备应用构建所需的随包资源,但跳过发行运行时资源和安装包生成。--no-bundlesmoke:不误用默认 Windows 资源目标,不要求安装 Windows Codex optional dependency。--target、Cargo--features、-f、runner 参数和 dev 环境变量的解析统一,staging 与 Cargo 使用同一目标和 feature 集。3. CI 修复
CI 首次失败原因是 Linux Native shell smoke 执行
--no-bundle时仍按默认目标x86_64-pc-windows-msvcstaging,导致查找不存在的 Windows Codex 包。现在目标规则为:
--no-bundle:使用宿主目标;验证
已通过:
--no-bundle入口 smoke;check:encoding;check:doc-index;git diff --check;平台说明
EPERM已通过“先 staging、后启动 Vite”修复。--no-bundlesmoke,不新增 Linux 随包资源支持。当前状态
已完成 M1/M2/M3 的代码落地与跨平台目标修复,等待 CI 重新验证后合并。
WIP: AGC dev 客户端 sccache 阻断修复与随包资源 staging 归位方案to AGC 随包资源 staging 归位:M1 单一声明与只读校验 + M2 入口接线(#519)suzmii referenced this pull request2026-09-30 11:51:47 +08:00
AGC 随包资源 staging 归位:M1 单一声明与只读校验 + M2 入口接线(#519)to WIP: AGC 随包资源 staging 归位:统一跨平台构建目标与增量缓存(#519)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.