feat: release v2.0.0 with tab completion, package filtering, db health checks, flatpak and logrotate
Build and Publish Release / Build Packages and Publish (push) Successful in 27s

This commit is contained in:
soda64 committed 2026-10-03 08:31:00 +02:00
1 parent 8d4157b42d
commit 8bec4ed932
27 files changed
+1053 -69

No files matched your search

+39 -1
View File
@@ -67,7 +67,7 @@ class PackageBuilder:
self,
source_root: Optional[Path] = None,
output_dir: Optional[Path] = None,
version: str = "1.3.0",
version: str = "2.0.0",
) -> None:
self.source_root = source_root or Path(__file__).resolve().parent.parent
self.output_dir = output_dir or (self.source_root / "dist")
@@ -105,6 +105,16 @@ class PackageBuilder:
if (self.source_root / "man").exists():
shutil.copytree(str(self.source_root / "man"), str(tmp_root / "man"))
# Copy shell completions
if (self.source_root / "completions").exists():
shutil.copytree(str(self.source_root / "completions"), str(tmp_root / "completions"))
# Copy packaging extras (logrotate)
if (self.source_root / "packaging" / "logrotate").exists():
pkg_dest = tmp_root / "packaging" / "logrotate"
pkg_dest.parent.mkdir(parents=True, exist_ok=True)
shutil.copytree(str(self.source_root / "packaging" / "logrotate"), str(pkg_dest))
# Archive the tree
with tarfile.open(str(out_path), "w:gz") as tar:
tar.add(str(tmp_root), arcname=f"linux-updater-{self.version}")
@@ -151,6 +161,28 @@ class PackageBuilder:
man_dir.mkdir(parents=True, exist_ok=True)
shutil.copy2(str(self.source_root / "man" / "linux-updater.8"), str(man_dir / "linux-updater.8"))
if (self.source_root / "completions" / "bash" / "linux-updater").exists():
bash_comp_dir = data_dir / "usr" / "share" / "bash-completion" / "completions"
bash_comp_dir.mkdir(parents=True, exist_ok=True)
shutil.copy2(
str(self.source_root / "completions" / "bash" / "linux-updater"),
str(bash_comp_dir / "linux-updater"),
)
if (self.source_root / "completions" / "zsh" / "_linux-updater").exists():
zsh_comp_dir = data_dir / "usr" / "share" / "zsh" / "vendor-completions"
zsh_comp_dir.mkdir(parents=True, exist_ok=True)
shutil.copy2(
str(self.source_root / "completions" / "zsh" / "_linux-updater"),
str(zsh_comp_dir / "_linux-updater"),
)
if (self.source_root / "packaging" / "logrotate" / "linux-updater").exists():
logrotate_dir = data_dir / "etc" / "logrotate.d"
logrotate_dir.mkdir(parents=True, exist_ok=True)
shutil.copy2(
str(self.source_root / "packaging" / "logrotate" / "linux-updater"),
str(logrotate_dir / "linux-updater"),
)
# If dpkg-deb is available, use it; otherwise build native .deb
if shutil.which("dpkg-deb"):
pkg_tree = root / "deb_tree"
@@ -211,6 +243,12 @@ class PackageBuilder:
)
if (self.source_root / "man").exists():
shutil.copytree(str(self.source_root / "man"), str(tmp_root / "man"))
if (self.source_root / "completions").exists():
shutil.copytree(str(self.source_root / "completions"), str(tmp_root / "completions"))
if (self.source_root / "packaging" / "logrotate").exists():
pkg_dest = tmp_root / "packaging" / "logrotate"
pkg_dest.parent.mkdir(parents=True, exist_ok=True)
shutil.copytree(str(self.source_root / "packaging" / "logrotate"), str(pkg_dest))
with tarfile.open(str(tarball_path), "w:gz") as tar:
tar.add(str(tmp_root), arcname=f"linux-updater-{self.version}")