Skip to content

v1.7.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Oct 04:45

U盘文件复制器 v1.7.1.0

构建时间: 20261014-044454
提交: 954f7fe

压缩包内容

USB-Files-Copy-v1.7.1.0            .zip
├── Client/          # Windows 客户端(完整版,支持连接服务器)
├── Client-Local/    # Windows 客户端(单机版,不支持服务器连接)
└── Server/          # ASP.NET Core 服务端
    ├── win-x64/     # Windows x64
    ├── linux-x64/   # Linux x64
    └── osx-x64/     # macOS x64

部署说明

客户端(两个版本按需选择):

  • Client/ — 完整版:可保存到本地目录,也可上传到服务端(需配置服务器地址与令牌)
  • Client-Local/ — 单机版:仅保存到本地/移动硬盘,界面中没有服务器配置,
    编译期即不含上传相关代码,适合只需本地备份、或不允许程序外联的场景

解压对应文件夹,运行其中的 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=<你的令牌>