diff --git a/环境依赖安装.ps1 b/环境依赖安装.ps1 new file mode 100644 index 0000000..ddd94d3 --- /dev/null +++ b/环境依赖安装.ps1 @@ -0,0 +1,15 @@ +脚本会检测并按需下载安装: +- .NET 10 SDK 和 .NET MAUI workload +- Visual Studio 2022 Build Tools、MSVC、Windows SDK +- Node.js 20+、npm、Corepack/pnpm +- Go 1.25+ +- Rust MSVC、Cargo、wasm-pack、WASM target +- Python 3.10+ 和 Pillow +- WebView2 Runtime +- NuGet、npm、pnpm、Go modules 和 Cargo 依赖 + +在新机器的仓库根目录运行: +powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install-dependencies.ps1 + +无人值守安装: +powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install-dependencies.ps1 -NoPrompt \ No newline at end of file