# chatshop_demo **Repository Path**: ipxdick/chatshop_demo ## Basic Information - **Project Name**: chatshop_demo - **Description**: No description available - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-02 - **Last Updated**: 2026-04-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 打包说明(Windows / macOS) ## 根目录创建.env文件 配置(example) VITE_API_HOST=https://api.siliconflow.cn/v1 VITE_API_KEY=sk-ndegopfwrsvkcrkpqazzwav ## 1. 安装依赖 ```bash npm install ``` ## 2. 构建应用代码 ```bash npm run build ``` ## 3. 生成安装包 ### 当前平台默认打包 ```bash npm run dist ``` ### Windows(x64) ```bash npm run dist:win ``` ### macOS(同时构建 arm64 + x64) ```bash npm run dist:mac ``` ### macOS(仅 arm64) ```bash npm run dist:mac:arm64 ``` ### macOS(仅 x64) ```bash npm run dist:mac:x64 ``` ## 4. 输出目录 打包产物默认输出到: ```text dist/ ``` ## 5. 图标与签名 - 资源目录:`build/` - 如需自定义图标,可添加: - `build/icon.icns`(macOS) - `build/icon.ico`(Windows) - 当前示例未配置证书签名与 notarization,仅用于本地分发测试。 ## 6. 注意事项 - 通常建议在目标系统打目标包(在 macOS 打 mac 包,在 Windows 打 win 包)。 - 若在非目标系统尝试跨平台打包,可能因签名、工具链或系统依赖失败。