ebb288a6a4
Project CI / AI game creator shell Rust smoke (push) Successful in 1m28s
Project CI / AI game creator shell Rust crates (push) Successful in 59s
Project CI / Backend tests (push) Successful in 4m50s
Project CI / Native shell tests (push) Successful in 5m43s
Project CI / AI game creator shell Rust lane 2/2 (push) Successful in 7m23s
Project CI / AI game creator shell Rust lane 1/2 (push) Successful in 8m55s
Project CI / Frontend tests (push) Successful in 2m8s
Project CI / AI game creator shell web tests (push) Failing after 1m52s
Project CI / Repository checks (push) Successful in 2m29s
dev 渠道显示为陶泥儿开发版并保持既有 identifier 与升级链。 将产品名注入 Tauri、原生窗口、前端标题栏和关于页面,统一快捷方式与注册表展示来源。 补充渠道配置门禁、发布脚本测试和渠道身份文档。
16 lines
642 B
TypeScript
16 lines
642 B
TypeScript
import appPackage from '../../package.json';
|
|
|
|
const DEFAULT_APP_NAME = '陶泥儿开发版';
|
|
|
|
/**
|
|
* 产品名由构建期注入;本地 Vite 开发没有注入时沿用 dev 渠道产品名。
|
|
*
|
|
* 发布构建可通过 `VITE_AGC_PRODUCT_NAME` 注入渠道产品名,避免 UI 自己
|
|
* 根据渠道推导名称,保证标题栏、关于页等前端展示与安装身份保持一致。
|
|
*/
|
|
const injectedAppName = import.meta.env.VITE_AGC_PRODUCT_NAME?.trim();
|
|
|
|
/** Product metadata shared by the client UI and release bundle. */
|
|
export const APP_NAME = injectedAppName || DEFAULT_APP_NAME;
|
|
export const APP_VERSION = appPackage.version;
|