uv cd E:\PROJECT_Python\auto_excal
uv 同步依赖和构建依赖
uv sync --group build
uv run cxfreeze build
uv run python zip.py --build-dir build/AutoExcal --output-dir dist --artifact-name AutoExcal-1.3.0-windows-amd64.zip --upx upx.exe
build/AutoExcal,zip 包位于 dist/ 目录。
开发环境直接运行:
uv run python main.py
https://github.com/UF4OVER/auto_excalhttps://github.com/UF4OVER/auto_excal/releaseshttps://github.com/UF4OVER/auto_excal/releases/latest只要后续继续发布到 GitHub Releases,用户就还能通过上述链接继续下载更新版本。
项目已内置工作流:.github/workflows/release.yml
当推送 tag 时,会自动:
uv 安装依赖cx_Freeze 构建 Windows 可执行文件zip.py 生成 zip 发布包本次版本发布约定:
git add .
git commit -m "feat(release): migrate build pipeline to uv and pyproject"
git tag 1.3.0
git push origin HEAD
git push origin 1.3.0
Release 名称和 tag 为 1.3.0,正文使用该 tag 对应提交的 commit message。