Skip to content

Commit 6b5c7b6

Browse files
committed
build: version-prefix binaries and individual checksums
- Add version to binary names (ctx-0.1.0-linux-amd64 instead of ctx-linux-amd64) - Generate individual .sha256 files per binary instead of single checksums.txt - Update docs with new binary names and checksum verification instructions - Fix release workflow to use ctx-* pattern (was amem-*) - Rebuild site with updated installation instructions Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
1 parent 8687ec4 commit 6b5c7b6

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ clean:
8787
rm -f $(BINARY)
8888
rm -rf dist/
8989

90-
## release: Build for all platforms
90+
## release: Build for all platforms (reads VERSION file)
9191
release:
92-
./hack/build-all.sh
92+
./hack/build-all.sh $$(cat VERSION | tr -d '[:space:]')
9393

9494
## release-version: Build for all platforms with version
9595
release-version:
@@ -100,6 +100,18 @@ release-version:
100100
release-tag:
101101
./hack/release.sh
102102

103+
## tag: Create signed git tag from VERSION file
104+
tag:
105+
./hack/tag.sh
106+
107+
## release-notes: Generate release notes (use Claude Code slash command)
108+
release-notes:
109+
@echo "To generate release notes, run in Claude Code:"
110+
@echo ""
111+
@echo " /release-notes"
112+
@echo ""
113+
@echo "This will analyze commits since the last tag and write to dist/RELEASE_NOTES.md"
114+
103115
## dogfood: Start dogfooding in a target folder
104116
dogfood:
105117
@test -n "$(TARGET)" || (echo "Usage: make dogfood TARGET=~/WORKSPACE/ctx-dogfood" && exit 1)

hack/build-all.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,15 @@ TARGETS=(
3434
echo "Building Context CLI v${VERSION}"
3535
echo "========================================="
3636

37-
# Clean and create output directory
37+
# Clean and create output directory (preserve RELEASE_NOTES.md if it exists)
38+
if [ -f "${OUTPUT_DIR}/RELEASE_NOTES.md" ]; then
39+
mv "${OUTPUT_DIR}/RELEASE_NOTES.md" /tmp/RELEASE_NOTES.md.bak
40+
fi
3841
rm -rf "${OUTPUT_DIR}"
3942
mkdir -p "${OUTPUT_DIR}"
43+
if [ -f /tmp/RELEASE_NOTES.md.bak ]; then
44+
mv /tmp/RELEASE_NOTES.md.bak "${OUTPUT_DIR}/RELEASE_NOTES.md"
45+
fi
4046

4147
# Build for each target
4248
for target in "${TARGETS[@]}"; do

0 commit comments

Comments
 (0)