f135a07ebe
根因:build_macos_pyinstaller.sh Step 3 显式指定 --bundles app,覆盖了
tauri.conf.json 里的 dmg target,只生成 .app 然后手动打 ZIP,完全没生成 DMG。
修复:
1. --bundles app → --bundles app,dmg(同时构建 .app 和 .dmg)
2. Step 4 增加 DMG 产物收集:从 bundle/dmg/*.dmg 复制到 dist/,
命名 YunOPC-Hub-{VERSION}-macOS.dmg,输出大小和路径
3. 构建完成摘要增加 DMG 路径
4. package.json 增加快捷脚本:tauri:dev / tauri:build /
tauri:build:mac / tauri:build:mac:debug
5. tauri.conf.json bundle.macOS.dmg 增加专业配置:
windowSize [640,440] + applicationFolder=true(DMG 内显示
/Applications 快捷方式,支持拖拽安装)
macOS DMG 打包依赖系统自带 hdiutil,无需额外安装。
Scripts
Run from repo root.
Build wheel (with latest console)
bash scripts/wheel_build.sh
- Builds the console frontend (
console/), copiesconsole/disttosrc/pineagents/console/dist, then builds the wheel. Output:dist/*.whl.
Build website
bash scripts/website_build.sh
- Installs dependencies (pnpm or npm) and runs the Vite build. Output:
website/dist/.
Build Docker image
bash scripts/docker_build.sh [IMAGE_TAG] [EXTRA_ARGS...]
- Default tag:
qwenpaw:latest. Usesdeploy/Dockerfile(multi-stage: builds console then Python app). - Example:
bash scripts/docker_build.sh myreg/qwenpaw:v1 --no-cache.
Run Test
# Run all tests
python scripts/run_tests.py
# Run all unit tests
python scripts/run_tests.py -u
# Run unit tests for a specific module
python scripts/run_tests.py -u providers
# Run integration tests
python scripts/run_tests.py -i
# Run all tests and generate a coverage report
python scripts/run_tests.py -a -c
# Run tests in parallel (requires pytest-xdist)
python scripts/run_tests.py -p
# Show help
python scripts/run_tests.py -h