-
Notifications
You must be signed in to change notification settings - Fork 0
125 lines (95 loc) · 4.43 KB
/
Copy pathrelease.yml
File metadata and controls
125 lines (95 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Lint and test
run: make lint test
- name: Generate checksums
run: make checksums
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version="${GITHUB_REF_NAME}"
cat > release-notes.md <<'EOF'
**Unofficial community tool.** `cbm-tool` is an independent community wrapper for `codebase-memory-mcp`. It is not maintained, endorsed, or supported by DeusData / the upstream `codebase-memory-mcp` project.
## Highlights
- Fix Windows MCP install to download the release zip only once (no nested re-download).
- Fix Windows uninstall spuriously printing "找不到批处理文件" by deferring `cbm.cmd` / `cbm.ps1` deletion.
- Keep installing from `/releases/latest/download` without GitHub tag/API resolve.
## What's in this release
- `cbm` — Linux / macOS Bash entrypoint
- `cbm.ps1` — Windows PowerShell entrypoint (UTF-8 BOM; prefers npm `.cmd` shim)
- `install/install.sh` — Linux / macOS installer (supports `curl ... | bash` one-liner)
- `install/install.ps1` — Windows PowerShell installer (supports `irm ... | iex`)
- `install/install.cmd` — Windows CMD installer (supports CMD one-liner)
- `install/uninstall.sh` — Linux / macOS uninstaller (supports `curl ... | bash` one-liner)
- `install/uninstall.ps1` — Windows PowerShell uninstaller (supports `irm ... | iex`)
- `install/uninstall.cmd` — Windows CMD uninstaller (supports CMD one-liner)
- `share/cbm/rules/codebase-memory.md` — default rule template
- `SHA256SUMS` — SHA-256 checksum manifest for all assets
- `cbm.sha256`, `cbm.ps1.sha256` — per-asset checksums
## One-liners
Linux / macOS install:
```bash
curl -fsSL https://github.com/fxjs/cbm-tool/releases/latest/download/install.sh | bash
```
Linux / macOS uninstall:
```bash
curl -fsSL https://github.com/fxjs/cbm-tool/releases/latest/download/uninstall.sh | bash
```
Windows PowerShell install:
```powershell
irm https://github.com/fxjs/cbm-tool/releases/latest/download/install.ps1 | iex
```
Windows PowerShell uninstall:
```powershell
irm https://github.com/fxjs/cbm-tool/releases/latest/download/uninstall.ps1 | iex
```
Windows CMD install:
```bat
curl -fsSL -o %TEMP%\cbm-install.cmd https://github.com/fxjs/cbm-tool/releases/latest/download/install.cmd && %TEMP%\cbm-install.cmd
```
Windows CMD uninstall:
```bat
curl -fsSL -o %TEMP%\cbm-uninstall.cmd https://github.com/fxjs/cbm-tool/releases/latest/download/uninstall.cmd && %TEMP%\cbm-uninstall.cmd
```
## Updater / uninstaller notes
- `cbm update self` downloads the latest `cbm-tool` release asset and verifies its SHA-256 checksum before replacing the installed script.
- `cbm update codebase-memory-mcp` runs the official upstream updater and is separate from cbm-tool's own update mechanism.
- `cbm uninstall` (or the uninstall one-liners) purges editor setup, runs `codebase-memory-mcp uninstall` (indexes kept by default), removes the cbm binary/shim, and clears shell PATH markers on Unix.
## Verify downloads
```bash
sha256sum -c SHA256SUMS
```
On Windows:
```powershell
Get-FileHash -Path cbm.ps1 -Algorithm SHA256
```
EOF
gh release create "${version}" \
--title "${version}" \
--notes-file release-notes.md \
bin/cbm \
bin/cbm.ps1 \
install/install.sh \
install/install.ps1 \
install/install.cmd \
install/uninstall.sh \
install/uninstall.ps1 \
install/uninstall.cmd \
share/cbm/rules/codebase-memory.md \
SHA256SUMS \
bin/cbm.sha256 \
bin/cbm.ps1.sha256