Skip to content

Go + Wails phase 4: installers, release, self-update, macOS menu, drafts migration; remove src-tauri - #48

Merged
FabioHAraujo merged 9 commits into
mainfrom
feat/go-wails-phase4
Dec 4, 2026
Merged

FabioHAraujo merged 9 commits into
mainfrom
feat/go-wails-phase4

Conversation

@FabioHAraujo

Copy link
Copy Markdown
Contributor

Closes #47. Stacked on #46 (phase 3).

What changes

  • Installers and release (packaging/, release.yml). The release publishes the same files under the same names as before, built from the Go app:
    • Windows: a new NSIS setup with the Tauri layout:

      • per-user %LOCALAPPDATA%\LowQuery\lowquery.exe plus uninstall.exe;
      • the same HKCU uninstall and app keys, and the Start Menu shortcut with AppUserModelID dev.lowbloat.lowquery;
      • it accepts the Tauri updater's /P /UPDATE /R /ARGS.

      There is also a portable zip.

    • macOS: a universal .app with executable lowquery and id dev.lowbloat.lowquery, ad-hoc signed. The DMG and .app.tar.gz are rooted at LowQuery.app/.

    • Linux:

      • .deb and .rpm with package low-query and /usr/bin/lowquery, as in the Tauri packages;
      • an AppImage, built with wails3 plus linuxdeploy, pinned and checksummed;
      • an Arch package and a portable tarball.
    • Updater files are signed by tools/updatesign. Its signatures are Tauri-compatible (minisign, same key, -app-version), so Tauri installs accept the Go build through their own updater.

    • Windows executable resources: a .syso with the icon, version info and a manifest (PerMonitorV2, Common Controls 6).

  • Self-update (internal/updater):
    • the same latest.json and key as before;
    • the download runs in the background, and the signature is checked on download and again before install;
    • install: the setup with /P /UPDATE /R, a bundle swap on macOS, AppImage replacement, or pkexec dpkg/rpm;
    • the channel policy is detected at runtime;
    • the interface's update flow from the Tauri builds is back (background download, then "Restart to update").
  • macOS menu bar (internal/menubar, set_app_menu): native app, Edit and Window menus around the interface's own menus; clicks come back as app-menu events.
  • Drafts migration (internal/legacystore, legacy_storage):
    • on first start, the editor drafts, export preferences and sidebar width are copied from the Tauri webview's storage;
    • sources: WebView2 LevelDB on Windows, WebKit SQLite on macOS and Linux;
    • it runs before the interface mounts, and only once.
  • Removed:
    • src-tauri, about 83k lines;
    • the @tauri-apps/* packages;
    • the Rust CI jobs and steps;
    • cargo-deny, replaced by govulncheck;
    • Cargo from dependabot, replaced by gomod.
  • Go 1.26.11. govulncheck reported 17 standard-library vulnerabilities in 1.26.4, in crypto/tls, net/http and crypto/x509, on paths the app calls. With 1.26.11 it finds none.
  • Docs: README, CONTRIBUTING, ARCHITECTURE, AI.md and CHANGELOG now describe the Go build.

CI added

  • windows-setup:
    • installs the real v0.5.7 Tauri setup and starts that app;
    • runs the new setup the way the Tauri updater does, then checks the binary, registry values, shortcuts, the restart and that lowquery mcp answers;
    • uninstalls and checks everything is gone and user data is kept;
    • also tests a fresh install and the portable zip.
  • linux-packages:
    • the package name and file list match the 0.5.7 .deb;
    • upgrades with dpkg -i over the 0.5.7 .deb, and with rpm -U in Fedora over the 0.5.7 .rpm;
    • the AppImage and the portable tarball answer MCP.
  • macos-app: checks the universal binary, Info.plist, signature and tarball layout, and that lowquery mcp answers.

Verified locally

  • go vet, the full Go test suite (with PostgreSQL), svelte-check (0 errors), bun test (100), the production bundle and actionlint all pass.
  • In the running app:
    • with a fresh webview profile, the draft from the real Tauri install on this machine was imported and opened;
    • update_policy reports a dev copy as portable.

Not verified yet

  • Signing with the real key and publishing a release.
  • The MSI-to-setup path: the setup removes the MSI copy, which needs admin rights once.
  • On a real Mac:
    • the macOS menu bar;
    • the drafts migration;
    • the bundle swap.
  • The Linux drafts migration.

…alls, .app, deb, rpm, AppImage, Arch); CI upgrade tests
…files in the deb upgrade test

internal/menubar imports Wails, which links GTK through cgo on Linux, so go vet, go test and govulncheck need the headers and the gtk3 tag. The Tauri .deb lists its directories without a trailing slash, so the file comparison now skips directory entries by mode.
The *.key ignore rule kept it out of the repository, so the updater tests failed on a fresh checkout. It is a test-only key; the signature fixtures were made with it.
The README lists macOS 12 as the minimum and drops the MSI. The changelog tells users on macOS 10.13 to 11 to keep 0.5.7, since the Tauri updater cannot hold the update back by OS version. CI checks LSMinimumSystemVersion and the minos of both slices.
@FabioHAraujo
FabioHAraujo changed the base branch from feat/go-wails-phase3 to main December 4, 2026 23:52
@FabioHAraujo
FabioHAraujo marked this pull request as ready for review December 4, 2026 23:52
@FabioHAraujo
FabioHAraujo merged commit 3d4972c into main Dec 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go + Wails phase 4: installers, release, self-update, macOS menu, drafts migration, remove src-tauri

1 participant