impress_asr_input/scripts/build-win.sh
impressionyang fc3ea6fa4e docs: 完善 Windows 构建指南和脚本
新增:
- scripts/build-win.bat: Windows 构建脚本
- scripts/build-win.sh: Linux/macOS 构建脚本

更新:
- BUILD_WINDOWS.md: 完善构建说明
  - 添加脚本使用说明
  - 简化手动打包步骤
  - 整理常见问题解答

注意:
- Windows ZIP 包较大 (132MB),建议在各平台自行构建
- 推荐使用提供的脚本进行构建

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-20 16:29:15 +08:00

28 lines
661 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Impress ASR Input - Windows x64 手动打包脚本
# 使用方式:在 Windows 系统上运行此脚本
# 设置代理(如果需要)
# export http_proxy="http://127.0.0.1:7897"
# export https_proxy="http://127.0.0.1:7897"
# 检查 Node.js
node -v || { echo "请先安装 Node.js 20+"; exit 1; }
echo "🔧 开始构建 Windows x64 版本..."
# 1. 安装依赖
echo "📦 安装依赖..."
npm install
# 2. 编译 TypeScript
echo "📝 编译 TypeScript..."
npm run build
# 3. 构建 ZIP 包
echo "📦 构建 ZIP 包..."
npm run build:win:zip
echo "✅ 构建完成!"
echo "输出文件release/Impress ASR Input-0.1.0-win-x64.zip"