From c3492f9a18e6672c70af4824e4135ea776dc1929 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Sun, 6 Sep 2026 21:06:50 +0800 Subject: [PATCH] docs: prepare v0.5.1 release --- README.md | 8 ++++---- docs/releases/v0.4.2.md | 16 ---------------- docs/releases/v0.5.1.md | 12 ++++++++++++ 3 files changed, 16 insertions(+), 20 deletions(-) delete mode 100644 docs/releases/v0.4.2.md create mode 100644 docs/releases/v0.5.1.md diff --git a/README.md b/README.md index cd5bbc0..a526c3f 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,13 @@ Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Debian/Ubuntu (amd64): ```bash -sudo apt install ./sshkeeper_0.4.2-1_amd64.deb +sudo apt install ./sshkeeper_0.5.1-1_amd64.deb ``` Fedora/RHEL-family (x86_64): ```bash -sudo dnf install ./sshkeeper-0.4.2-1.x86_64.rpm +sudo dnf install ./sshkeeper-0.5.1-1.x86_64.rpm ``` `arm64`/`aarch64` packages are published alongside the x86_64 builds. Native @@ -98,8 +98,8 @@ sshkeeper --version The traditional tar.gz archive remains available too: ```bash -tar -xzf sshkeeper_v0.4.2_linux_amd64.tar.gz -sudo install -m 0755 sshkeeper_v0.4.2_linux_amd64/sshkeeper /usr/local/bin/sshkeeper +tar -xzf sshkeeper_v0.5.1_linux_amd64.tar.gz +sudo install -m 0755 sshkeeper_v0.5.1_linux_amd64/sshkeeper /usr/local/bin/sshkeeper sshkeeper ``` diff --git a/docs/releases/v0.4.2.md b/docs/releases/v0.4.2.md deleted file mode 100644 index ff4c39c..0000000 --- a/docs/releases/v0.4.2.md +++ /dev/null @@ -1,16 +0,0 @@ -# sshkeeper v0.4.2 — Package Migration Fix - -This patch fixes the legacy binary migration added in v0.4.1. - -## Fixed - -- Debian/RPM package installation now correctly discovers `~/.local/bin/sshkeeper` from `/etc/passwd`. -- The v0.4.1 postinstall script emitted literal `\t`/`\n` text from awk, so user-home candidates were never parsed. -- `/usr/local/bin/sshkeeper` migration was unaffected. -- Added a regression test that exercises passwd-based discovery instead of only injecting legacy paths directly. - -## Result - -After installing the package, an older `~/.local/bin/sshkeeper` is backed up and replaced with a symlink to `/usr/bin/sshkeeper`, so the packaged binary wins command resolution even in an existing shell session. - -No config, database, vault, SSH keys, or other user data are modified. diff --git a/docs/releases/v0.5.1.md b/docs/releases/v0.5.1.md new file mode 100644 index 0000000..f9ed4d8 --- /dev/null +++ b/docs/releases/v0.5.1.md @@ -0,0 +1,12 @@ +# sshkeeper v0.5.1 — Package Migration Fix + +v0.5.1 is a patch release on top of v0.5.0 Persistent SSH Sessions. + +## Fixed + +- Fixed DEB/RPM post-install discovery of legacy per-user binaries at `~/.local/bin/sshkeeper`. +- Package installation now correctly backs up a legacy binary and replaces its old path with a symlink to `/usr/bin/sshkeeper`. +- Added a regression test that discovers the user path through passwd data, matching the real package-install path. +- `sshkeeper --version` and `sshkeeper version` continue to report the embedded release version. + +No session functionality from v0.5.0 is removed or rolled back.