Repository navigation
v1.6.0.0
U盘文件复制器 v1.6.0.0
构建时间: 20260913-055317
提交: 24245fe
压缩包内容
USB-Files-Copy-v1.6.0.0 .zip
├── Client/ # Windows 客户端程序
└── Server/ # ASP.NET Core 服务端
├── win-x64/ # Windows x64
├── linux-x64/ # Linux x64
└── osx-x64/ # macOS x64
部署说明
客户端: 解压 Client/ 文件夹,运行 U盘文件复制器.exe
服务端: 选择对应平台目录,先安装 .NET 8 Runtime,然后运行:
# Windows
cd Server/win-x64 && U盘文件复制.Server.exe
# Linux/macOS
cd Server/linux-x64 && ./U盘文件复制.Server默认监听 http://localhost:5000,Web 管理面板直接浏览器访问。
⚠️ 首次部署必读(服务端)
出于安全考虑,发布包内不包含 appsettings.json(避免访问令牌被公开)。首次运行前:
# 1. 复制示例配置
cp appsettings.Example.json appsettings.json
# 2. 生成随机令牌并填入 FileStorage:AllowedTokens
openssl rand -hex 24未配置令牌时服务端会拒绝启动并打印提示。
建议改用环境变量注入,避免令牌落盘:FileStorage__AllowedTokens__0=<你的令牌>