返回 CodeWhale
README.md
根目录 / packaging / winget / README.md
1 # WinGet packaging for CodeWhale
2
3 WinGet installs `HunterBown.CodeWhale` as the portable x64 command `codewhale`. It uses the legacy asset filename `codewhale-tui-windows-x64.exe` and declares the Microsoft Visual C++ 2015+ x64 runtime dependency. The published 0.10.2 package uses this contract. The release also provides a separate NSIS installer and native ARM64 archives. [Microsoft’s 0.10.2 manifest](https://github.com/microsoft/winget-pkgs/tree/master/manifests/h/HunterBown/CodeWhale/0.10.2)
4
5 ## Prepare a manifest
6
7 Run the generator with the release version and its checksum directory. It selects the exact portable executable from `codewhale-artifacts-sha256.txt` and updates `packaging/winget/HunterBown.CodeWhale.yaml`.
8
9 ```bash
10 ./packaging/winget/generate-winget-manifest.sh X.Y.Z /path/to/release-assets
11 ```
12
13 Validate the resulting singleton on Windows.
14
15 ```powershell
16 winget validate --manifest packaging/winget/HunterBown.CodeWhale.yaml
17 ```
18
19 Microsoft maintains the public package as a multi-file manifest. A separately approved submission updates that package using the verified installer URL, hash, architecture and command. [Published manifests](https://github.com/microsoft/winget-pkgs/tree/master/manifests/h/HunterBown/CodeWhale)
20
21 ## FreeBSD
22
23 FreeBSD has no prebuilt GitHub Release asset (see `docs/INSTALL.md` § FreeBSD). Install via Cargo:
24
25 ```bash
26 pkg install -y rust pkgconf # or ports-mgmt/pkg
27 cargo install codewhale-cli --locked # provides `codewhale`
28 ```
29
30 The npm wrapper on FreeBSD exits with `Unsupported platform: freebsd` and points to the Cargo path.
31 A native `pkg install codewhale` port is tracked as a follow-up to #1097 — contributions welcome
32 under `packaging/freebsd/`.
33
33 lines MARKDOWN