Files in the top-level directory from the latest check-in

  • .fossil-settings
  • src
  • src-tauri
  • gen_icon.py
  • index.html
  • package-lock.json
  • package.json
  • postcss.config.js
  • README.md
  • tailwind.config.js
  • tsconfig.json
  • tsconfig.node.json
  • vite.config.ts

DDC-Tools

DDC-Tools 是一款基于 Tauri 2.x、React、TypeScript 和 Rust 的跨平台桌面压缩工具,目标平台为 Windows x64 与 macOS Apple Silicon。

功能范围

  • 压缩文件或文件夹为 ZIP、TAR.GZ、TAR.XZ、TAR.ZST、TAR.BZ2、TAR.BR、TAR.LZ4、7Z、ISO、DMG 或自解压包。
  • 解压 ZIP、TAR 系列、7Z、ISO、DMG 和自解压包。
  • 不解压预览压缩包目录结构,并读取单个条目的内容片段。
  • 对 ZIP 和 7Z 压缩包进行 AES-256 加密与解密。
  • 通过 Tauri 事件向前端推送压缩、解压、加密和解密进度。

平台限定

  • DMG 创建与解压仅在 macOS 可用。
  • 自解压包创建仅在 Windows 可用。
  • 平台限定测试在对应系统上运行;如果 macOS 环境没有可用镜像挂载设备,ISO/DMG roundtrip 测试会跳过环境相关断言。

开发

安装依赖:

npm ci

启动前端开发服务器:

npm run dev

启动 Tauri 应用:

npm run tauri -- dev

测试

前端构建:

npm run build

Rust 单元、属性和集成测试:

cd src-tauri
cargo test --all-targets

只运行属性测试:

cd src-tauri
cargo test --test properties

构建

生成桌面应用构建产物:

npm run tauri -- build

CI/CD

GitHub Actions 工作流位于 .github/workflows/ci.yml,会在 macOS ARM 与 Windows x64 上执行:

  • 安装前端依赖
  • 构建前端资源
  • 运行 Rust 单元测试、属性测试和集成测试
  • 构建 Tauri 桌面应用
  • 上传平台构建产物