- 🔗 一键代理启动 - 支持 HTTP 和 SOCKS5 代理,让 Unity Hub 正常联网
- 🔍 自动路径检测 - 自动寻找 Unity Hub 安装位置,无需手动配置
- 🖥️ 跨平台支持 - Windows、macOS 和 Linux 均可使用
- 🌍 多语言支持 - 界面根据系统语言自动切换
注意 - 本工具仅提供 64 位版本,不支持 32 位系统
📥 https://www.nounitycn.top/unityhub
特别感谢 NoUnityCN 提供下载服务
⚠️ NoUnityCN 无法再在中国大陆 IP 环境下下载编辑器
⚠️ 重要提示:在使用本工具启动 Unity Hub 之前,请确保彻底关闭现有的 Unity Hub 进程(包括系统托盘图标),否则代理注入可能不会生效
- 前往 Releases 页面下载对应系统的压缩包
- 解压后直接运行
GlobalUnityInstaller(Windows 为.exe)
- 确保已安装 .NET SDK 8.0 或更高版本
- 在项目根目录运行:
dotnet run --project src/GlobalUnityInstaller.csproj
- 输入本地代理端口(如
7890),点击启动即可
快速发布所有平台:
.\scripts\publish-all.ps1 -CreatePackages各平台单独编译:
Windows
Windows x64:
dotnet publish src/GlobalUnityInstaller.csproj -c Release -r win-x64 --self-contained产物:src/bin/Release/net8.0/win-x64/publish/GlobalUnityInstaller.exe
Windows ARM64:
dotnet publish src/GlobalUnityInstaller.csproj -c Release -r win-arm64 --self-contained产物:src/bin/Release/net8.0/win-arm64/publish/GlobalUnityInstaller.exe
打包为 ZIP:
# x64
Compress-Archive -Path "src/bin/Release/net8.0/win-x64/publish/GlobalUnityInstaller.exe" -DestinationPath "GlobalUnityInstaller-win-x64.zip" -Force
# ARM64
Compress-Archive -Path "src/bin/Release/net8.0/win-arm64/publish/GlobalUnityInstaller.exe" -DestinationPath "GlobalUnityInstaller-win-arm64.zip" -ForcemacOS
Apple Silicon (ARM64):
chmod +x scripts/create-macos-app.sh
./scripts/create-macos-app.sh arm64Intel (x64):
chmod +x scripts/create-macos-app.sh
./scripts/create-macos-app.sh x64打包为 DMG:
# ARM64
hdiutil create -volname 'GlobalUnityInstaller' -srcfolder GlobalUnityInstaller.app -ov -format UDZO GlobalUnityInstaller-mac-arm64.dmg
# x64
hdiutil create -volname 'GlobalUnityInstaller' -srcfolder GlobalUnityInstaller.app -ov -format UDZO GlobalUnityInstaller-mac-x64.dmg在 Windows 上交叉编译 macOS 应用: 见 scripts/README.md
Linux
方式一:AppImage(推荐)
# 在 Linux 上运行
chmod +x scripts/create-linux-appimage.sh
./scripts/create-linux-appimage.sh
# 下载并使用 appimagetool
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage GlobalUnityInstaller.AppDir GlobalUnityInstaller-x86_64.AppImage方式二:简易打包
方式二:简易打包(TAR.GZ)
# 发布
dotnet publish src/GlobalUnityInstaller.csproj -c Release -r linux-x64 --self-contained
# 在 Windows 上创建包
.\scripts\create-linux-package.ps1
# 或在 Linux 上打包
tar czf GlobalUnityInstaller-linux-x64.tar.gz -C src/bin/Release/net8.0/linux-x64/publish .产物:.AppImage 单文件或 `GlobalUnityInstaller-linux-x64scripts/README.md](scripts/README.md) 获取完整的打包指南
GlobalUnityInstaller/
├── assets/ # 应用资源
│ ├── icon.svg # SVG icon
│ └── icon.ico # Windows icon
├── scripts/ # 打包脚本
│ ├── create-macos-app.ps1 # Windows 上创建 macOS .app
│ ├── create-macos-app.sh # macOS 上发布和打包 .app
│ ├── create-linux-appimage.sh # Linux 上创建 AppImage
│ ├── create-linux-package.ps1 # Linux 简易打包脚本
│ ├── publish-all.ps1 # 一键发布所有平台
│ └── README.md # 详细打包指南
├── src/ # 源代码
├── GlobalUnityInstaller.sln
└── README.md # 项目文档