mirror of
https://github.com/Hmbown/DeepSeek-TUI.git
synced 2026-09-03 06:50:13 +08:00
fix(packaging): preserve AUR compatibility alias
Keep the existing codewhale-tui symlink when codewhale-bin upgrades while installing codew from the consolidated archive. Pin the package-layout regression and make the Omarchy documentation match the compatibility contract.
This commit is contained in:
@@ -433,8 +433,10 @@ codewhale --version
|
||||
|
||||
`codewhale-bin` packages the same checksum-pinned Linux release archives as the
|
||||
other binary install paths and provides both `codewhale` and `codew`. It does
|
||||
not carry a separate Codewhale version. Package updates arrive through
|
||||
`omarchy update`; the in-app updater leaves the pacman-owned binary to Omarchy.
|
||||
not carry a separate Codewhale version; the existing `codewhale-tui`
|
||||
compatibility command remains an alias to the same runtime. Package updates
|
||||
arrive through `omarchy update`; the in-app updater leaves the pacman-owned
|
||||
binary to Omarchy.
|
||||
|
||||
The AUR update follows the matching Codewhale tag and release assets, so it may
|
||||
appear after the GitHub release while its generated `PKGBUILD` and `.SRCINFO`
|
||||
|
||||
@@ -35,6 +35,7 @@ package() {
|
||||
"${pkgdir}/usr/bin/codewhale"
|
||||
install -Dm755 "${srcdir}/codewhale-linux-${release_arch}/codew" \
|
||||
"${pkgdir}/usr/bin/codew"
|
||||
ln -s codewhale "${pkgdir}/usr/bin/codewhale-tui"
|
||||
install -Dm644 "${srcdir}/LICENSE-${pkgver}" \
|
||||
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
@@ -57,8 +57,10 @@ namcap PKGBUILD codewhale-bin-*.pkg.tar.zst
|
||||
```
|
||||
|
||||
Inspect the package contents before installation. They should contain
|
||||
`/usr/bin/codewhale`, `/usr/bin/codew`, and the MIT license, with no legacy
|
||||
third command. After a test install, verify both entrypoints report `X.Y.Z`.
|
||||
`/usr/bin/codewhale`, `/usr/bin/codew`, the existing `codewhale-tui`
|
||||
compatibility symlink to `codewhale`, and the MIT license. After a test install,
|
||||
verify the canonical entrypoints report `X.Y.Z` and the compatibility symlink
|
||||
resolves to the same runtime.
|
||||
|
||||
Publishing the generated files to the `codewhale-bin` AUR repository requires
|
||||
separate authorization from an AUR maintainer. Regenerate `.SRCINFO` whenever
|
||||
|
||||
@@ -101,6 +101,8 @@ for arch_case in 'x86_64:x64' 'aarch64:arm64'; do
|
||||
cmp \
|
||||
"${stage_dir}/codewhale-linux-${release_arch}/codew" \
|
||||
"${package_root}/usr/bin/codew"
|
||||
test -L "${package_root}/usr/bin/codewhale-tui"
|
||||
test "$(readlink "${package_root}/usr/bin/codewhale-tui")" = codewhale
|
||||
cmp "${repo_root}/LICENSE" \
|
||||
"${package_root}/usr/share/licenses/codewhale-bin/LICENSE"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user