Commit Graph
12 Commits
Author SHA1 Message Date
cflmy 4e4e08b375 fix(mqdh): bound every Windows installer smoke step with a timeout (#33)
The NSIS silent install can wait forever on a CI runner if it falls back to an
interactive UI. Use Start-Process + WaitForExit with explicit timeouts for
install, version, backend smoke and uninstall so the job fails fast with a real
diagnostic instead of hanging.
2026-12-03 17:49:26 +08:00
cflmy 6839e82190 perf(mqdh): stage native runtime as a plain tar to keep Windows/macOS CI fast (#33)
gzip on a 2.7 GB pnpm tree takes tens of minutes on a 2-core Windows runner.
Stage an uncompressed tar under one neutral resource name; the shell detects the
gzip magic for the Linux verified archive and reads plain tar for native lanes.
Installers still compress the tar as part of NSIS/DMG bundling.
2026-12-03 16:58:34 +08:00
cflmy e859b2efdc ci(mqdh): build the authoritative Gitea archive on GitHub runners (#33)
The GitHub remote is CI/CD only: workflows download the exact Gitea archive for
the requested source SHA instead of mirroring the large git history through a
proxy (Git pack generation hits Cloudflare 524 limits). Source/SHA stay
authoritative in Gitea; run-name + evidence record the Gitea SHA. The scheduled
dispatcher reads Gitea tags and requests a release build for tags without an
authoritative Release. Also allow MQDH_SOURCE_SHA without git metadata.
2026-12-03 14:57:36 +08:00
cflmy 2e1073d224 fix(mqdh): stage the runtime archive for native Windows/macOS lanes (#33)
The Tauri resources contract now ships one mqdh-runtime.tar.gz; the native stage
script must produce that same archive with the platform node runtime (node.exe
on Windows) instead of a bare tree, otherwise the NSIS/DMG bundlers cannot find
the resource.
2026-12-03 14:31:20 +08:00
cflmy c59f13bfb9 ci(mqdh): migrate app CI/CD to the GitHub Actions second remote (#33)
Gitea stays the only source/ticket/release authority. The same commit is pushed
to the github second remote; GitHub Actions builds native Linux/Windows/macOS
installers and a protected publish job uploads the final bytes and evidence
back to the authoritative Gitea Release.

- add .github/workflows/mqdh-tauri-release.yml (pinned actions, three native
  runners, Gitea publish with secret GITEA_TOKEN, no fork secrets)
- record github-actions run identity in release-evidence.json
- add installer fragment/merge scripts so three jobs produce one manifest
- move the retired Woodpecker configs to docs/mqdh/ci/woodpecker/ and document
  the new CI contract in docs/mqdh/CI.md
2026-12-03 14:29:14 +08:00
cflmy d434130785 fix(mqdh): pass installer triplet positionally to the evidence helper (#31)
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/tauri-linux Pipeline is pending
ci/woodpecker/push/tauri-linux Pipeline is pending
ci/woodpecker/push/ci Pipeline was canceled
ci/woodpecker/tag/ci Pipeline failed
ci/woodpecker/tag/tauri-linux Pipeline failed
ci/woodpecker/manual/tauri-linux Pipeline is pending
ci/woodpecker/manual/tauri-macos Pipeline is pending
ci/woodpecker/manual/tauri-windows Pipeline is pending
ci/woodpecker/manual/ci Pipeline was successful
2026-12-03 13:20:42 +08:00
cflmy 6f4eb56e0e fix(mqdh): avoid pipefail SIGPIPE while validating the runtime archive (#31)
ci/woodpecker/push/tauri-linux Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/tauri-linux Pipeline is pending
ci/woodpecker/push/ci Pipeline was canceled
2026-12-03 13:16:52 +08:00
cflmy b74794c55c fix(mqdh): ship the verified tree as one archive and extract on first start (#31)
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/tauri-linux Pipeline is pending
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/push/tauri-linux Pipeline is pending
Tauri's Linux deb walker drops symlinks and the pnpm node_modules tree is
symlink-based, so a resource directory installed a broken tree. Ship the exact
cold-install-verified .tar.gz as one resource; the shell validates entry paths,
extracts once to MQDH_HOME/runtime, keeps the completed tree for later starts,
and launches the same existing backend. Also fix the installer-argument parser
and document TAURI.md in the product doc indexes.

Verified locally in the pinned Debian 12 build image: deb bundle + extract +
--version + real backend --smoke PASS.
2026-12-03 13:14:00 +08:00
cflmy ebc2e9a64d fix(mqdh): bundle deb without the asset protocol and via the reviewed mirror (#31)
ci/woodpecker/pr/tauri-linux Pipeline is pending
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/tauri-linux Pipeline was canceled
ci/woodpecker/pr/ci Pipeline was canceled
The MQDH shell never exposes the Tauri asset protocol, so disable it
explicitly. Tauri 2.13 otherwise downloads a GStreamer asset plugin from
GitHub at deb bundle time; fetch bundler assets through the internal reviewed
mirror instead of requiring direct GitHub access in CI.
2026-12-03 12:59:01 +08:00
cflmy 61d0976463 fix(mqdh): package from the current version, not a stale .ci manifest (#31)
ci/woodpecker/push/tauri-linux Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/tauri-linux Pipeline is pending
ci/woodpecker/push/ci Pipeline was canceled
2026-12-03 12:50:52 +08:00
cflmy fafb49a633 build(mqdh): pin the Tauri crate graph and build image recipe (#31)
ci/woodpecker/push/tauri-linux Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/tauri-linux Pipeline is pending
ci/woodpecker/push/ci Pipeline was canceled
- commit Cargo.lock for the desktop shell
- generate the desktop icon set from the existing approved MQDH icon
- add the app-owned Tauri build image Dockerfile/build script
- record the pinned Tauri CLI 2.13.0 and Rust 1.100 toolchain
2026-12-03 12:39:54 +08:00
cflmy c090cc786e feat(mqdh): add the Tauri desktop shell and installer release contract (#31)
Add the minimal Tauri 2 desktop adaptation for the existing /mqdh workbench:
the shell starts the bundled production tree on loopback, waits for the real
readiness URL, navigates only inside that origin, keeps a single instance and
stops only its own process tree. The product UI, Harness service and update
discovery are unchanged.

- src-tauri: Tauri config, core-only capability, Rust lifecycle/security shell
- scripts/tauri: resource staging, Linux deb build + smoke, Windows/macOS native
  lane scripts, installer attachment to the existing release manifest
- .woodpecker/tauri-*: Linux lane plus labelled native Windows/macOS lanes
- docs/mqdh/TAURI.md + ADR 0001: Tauri 2 is the only official desktop wrapper
- version 0.2.0-beta.1; portable archive remains an advanced/diagnostic asset

Windows/macOS remain BLOCKED until native agents and signing credentials exist;
no simulated bytes are produced.
2026-12-03 12:34:46 +08:00