From e88fc8532d2930c412a43397b00ebc8d28484740 Mon Sep 17 00:00:00 2001 From: admin_gitea Date: Wed, 19 Aug 2026 23:13:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=AE=89=E8=A3=85.ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 环境依赖安装.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 环境依赖安装.ps1 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