Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/scripts/test_update_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class ManifestTest(unittest.TestCase):
def test_signed_assets_become_platforms_and_linux_stays_appimage_only(self):
def test_signed_assets_become_platforms_with_one_key_per_linux_format(self):
with tempfile.TemporaryDirectory() as tmp:
assets = Path(tmp)
for name in [
Expand All @@ -15,17 +15,21 @@ def test_signed_assets_become_platforms_and_linux_stays_appimage_only(self):
"LowQuery-1.2.3-macos-universal.app.tar.gz",
"LowQuery-1.2.3-linux-x64.AppImage",
"LowQuery-1.2.3-linux-x64.deb",
"LowQuery-1.2.3-linux-x64.rpm",
"LowQuery-1.2.3-linux-x86_64.pkg.tar.zst",
]:
(assets / name).write_bytes(b"x")
if not name.endswith(".deb"):
if not name.endswith(".zst"):
(assets / f"{name}.sig").write_text(f"sig-{name}\n")
doc = build_manifest("1.2.3", "LowBloat/LowQuery", assets, "notes")
self.assertEqual(
sorted(doc["platforms"]),
["darwin-aarch64", "darwin-x86_64", "linux-x86_64-appimage",
"windows-x86_64", "windows-x86_64-msi", "windows-x86_64-nsis"],
["darwin-aarch64", "darwin-x86_64", "linux-x86_64-appimage", "linux-x86_64-deb",
"linux-x86_64-rpm", "windows-x86_64", "windows-x86_64-msi", "windows-x86_64-nsis"],
)
self.assertNotIn("linux-x86_64", doc["platforms"])
self.assertTrue(doc["platforms"]["linux-x86_64-deb"]["url"].endswith("/LowQuery-1.2.3-linux-x64.deb"))
self.assertTrue(doc["platforms"]["linux-x86_64-rpm"]["url"].endswith("/LowQuery-1.2.3-linux-x64.rpm"))
self.assertEqual(doc["platforms"]["windows-x86_64-msi"]["signature"], "sig-LowQuery-1.2.3-windows-x64.msi")
self.assertTrue(doc["platforms"]["windows-x86_64"]["url"].endswith("/v1.2.3/LowQuery-1.2.3-windows-x64-setup.exe"))

Expand Down
7 changes: 5 additions & 2 deletions .github/scripts/update_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ def signed(keys, asset):
signed(["windows-x86_64", "windows-x86_64-nsis"], f"LowQuery-{version}-windows-x64-setup.exe")
signed(["windows-x86_64-msi"], f"LowQuery-{version}-windows-x64.msi")
signed(["darwin-aarch64", "darwin-x86_64"], f"LowQuery-{version}-macos-universal.app.tar.gz")
# No generic Linux key: .deb and .rpm installs must never receive an AppImage.
# One key per Linux format, never a generic one: a .deb install must get a
# .deb, an .rpm install an .rpm, and the Arch package nothing (pacman owns it).
signed(["linux-x86_64-appimage"], f"LowQuery-{version}-linux-x64.AppImage")
signed(["linux-x86_64-deb"], f"LowQuery-{version}-linux-x64.deb")
signed(["linux-x86_64-rpm"], f"LowQuery-{version}-linux-x64.rpm")

return {
"version": version,
Expand All @@ -47,7 +50,7 @@ def signed(keys, asset):
notes = result.stdout.strip()
assets = Path("release-assets")
doc = build_manifest(version, repo, assets, notes)
required = {"windows-x86_64", "darwin-aarch64", "linux-x86_64-appimage"}
required = {"windows-x86_64", "darwin-aarch64", "linux-x86_64-appimage", "linux-x86_64-deb", "linux-x86_64-rpm"}
missing = required - doc["platforms"].keys()
if missing:
raise SystemExit(f"Signed updater artifacts missing for: {sorted(missing)}")
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,14 @@ jobs:
set -euo pipefail
mkdir -p out
bundle=src-tauri/target/release/bundle
cp "$(find $bundle/deb -name '*.deb' | head -n 1)" "out/LowQuery-${VERSION}-linux-x64.deb"
cp "$(find $bundle/rpm -name '*.rpm' | head -n 1)" "out/LowQuery-${VERSION}-linux-x64.rpm"
# Each package keeps its updater signature: .deb and .rpm installs
# update themselves through dpkg/rpm.
deb="$(find $bundle/deb -name '*.deb' | head -n 1)"
cp "$deb" "out/LowQuery-${VERSION}-linux-x64.deb"
cp "$deb.sig" "out/LowQuery-${VERSION}-linux-x64.deb.sig"
rpm="$(find $bundle/rpm -name '*.rpm' | head -n 1)"
cp "$rpm" "out/LowQuery-${VERSION}-linux-x64.rpm"
cp "$rpm.sig" "out/LowQuery-${VERSION}-linux-x64.rpm.sig"
appimage="$(find $bundle/appimage -name '*.AppImage' | head -n 1)"
cp "$appimage" "out/LowQuery-${VERSION}-linux-x64.AppImage"
cp "$appimage.sig" "out/LowQuery-${VERSION}-linux-x64.AppImage.sig"
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to LowQuery are documented here. The format follows [Keep a

## [Unreleased]

## [0.5.5] - 2026-11-11

### Fixed
- **Automatic updates on Linux `.deb` and `.rpm` installs.** They were only told a new version existed: the release published no updater signature or manifest entry for them, and the app treated them as owned by the package manager. Now, when dpkg or rpm really owns the binary, the update downloads and installs the new package itself (pkexec asks for the administrator password), like Windows, macOS and the AppImage. The Arch package and portable copies keep the download link.
- **Updates show up much sooner.** The app checked every six hours; it now checks every 10 minutes and when the window regains focus, downloads the update in the background and only then offers **Restart to update**, which installs it right away.

## [0.5.4] - 2026-10-30

### Added
Expand Down Expand Up @@ -173,7 +179,8 @@ First public release, with PostgreSQL and Oracle.
- Schema browser for tables, views, sequences, routines, packages and columns.
- Drafts restored on restart, light and dark themes, and a layout for narrow windows.

[Unreleased]: https://github.com/LowBloat/LowQuery/compare/v0.5.4...HEAD
[Unreleased]: https://github.com/LowBloat/LowQuery/compare/v0.5.5...HEAD
[0.5.5]: https://github.com/LowBloat/LowQuery/compare/v0.5.4...v0.5.5
[0.5.4]: https://github.com/LowBloat/LowQuery/compare/v0.5.3...v0.5.4
[0.5.3]: https://github.com/LowBloat/LowQuery/compare/v0.5.2...v0.5.3
[0.5.2]: https://github.com/LowBloat/LowQuery/compare/v0.5.1...v0.5.2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ The [latest release](https://github.com/LowBloat/LowQuery/releases/latest) inclu
gh attestation verify LowQuery-<version>-linux-x64.AppImage --repo LowBloat/LowQuery
```

**Updates.** Installed copies on Windows, macOS and AppImage update themselves: LowQuery checks for a new release in the background, shows what changed and installs it when you choose **Install and restart**. Updates are signed and verified before installation. `.deb`, `.rpm` and portable copies are told when a new version is out and link to the download.
**Updates.** Installed copies on Windows, macOS, AppImage, `.deb` and `.rpm` update themselves: LowQuery checks for a new release every few minutes and when the window regains focus, downloads it in the background and offers **Restart to update** once it is ready. Updates are signed and verified before installation. `.deb` and `.rpm` installs ask for the administrator password, since dpkg or rpm installs the new package. The Arch package and portable copies are told when a new version is out and link to the download.

**First launch on Windows and macOS.** The installers are not code-signed yet, so the system warns on first launch:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowquery",
"version": "0.5.4",
"version": "0.5.5",
"description": "LowQuery: a lightweight multi-database SQL client (Oracle and PostgreSQL).",
"homepage": "https://github.com/LowBloat/LowQuery",
"repository": {
Expand Down
99 changes: 60 additions & 39 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lowquery"
version = "0.5.4"
version = "0.5.5"
description = "Lightweight SQL client for multiple databases"
authors = ["LowBloat"]
license = "AGPL-3.0-only"
Expand Down
Loading
Loading