Skip to content

Commit b9eab3e

Browse files
Release v0.0.2
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7ff72e0 commit b9eab3e

3 files changed

Lines changed: 32 additions & 21 deletions

File tree

frontend/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function Hero() {
110110
</div>
111111
<div className="inline-flex items-center gap-2 py-1.5 px-4 bg-[rgba(0,255,65,0.08)] border border-border-green rounded-[20px] text-[10px] tracking-[2px] uppercase text-green mb-10">
112112
<span className="w-1.5 h-1.5 rounded-full bg-green animate-pulse-dot" aria-hidden="true" />
113-
<span>System Status: Optimal // v0.0.1</span>
113+
<span>System Status: Optimal // v0.0.2</span>
114114
</div>
115115
<h1 id="hero-title" className="font-display text-[32px] md:text-[52px] font-bold leading-[1.1] tracking-[-1.5px] mb-6">
116116
<span className="text-text-primary">Stop Forgetting</span>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ishaan812/devlog",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "AI-powered development activity tracker and code intelligence tool. Local-first work logging for developers who juggle too many repos.",
55
"bin": {
66
"devlog": "./bin/devlog-wrapper.js"

scripts/build-release.sh

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,48 @@ CURRENT_ARCH=$(go env GOARCH)
1616
echo "Current platform: ${CURRENT_OS}/${CURRENT_ARCH}"
1717
echo ""
1818

19-
# DuckDB requires CGO, so cross-compilation needs native C toolchains.
20-
# On macOS: darwin arm64/amd64 work natively; for Linux/Windows install:
21-
# brew install filosottile/musl-cross/musl-cross mingw-w64
22-
# Or use GitHub Actions for full multi-platform builds (see .github/workflows/release.yml).
19+
# DuckDB requires CGO. Cross-compiling to Linux from macOS doesn't work (DuckDB's
20+
# prebuilt libs need glibc; musl has symbol mismatches). Use Docker for Linux locally.
21+
# Windows: brew install mingw-w64. Full multi-platform: push a tag for GitHub Actions.
2322

2423
echo "Building macOS binaries (CGO_ENABLED=1)..."
2524
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o ${OUTPUT_DIR}/devlog-darwin-amd64 ./cmd/devlog
2625
echo " ✓ darwin-amd64"
2726
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o ${OUTPUT_DIR}/devlog-darwin-arm64 ./cmd/devlog
2827
echo " ✓ darwin-arm64"
2928

30-
# Try Linux/Windows builds (requires cross-compilers: brew install filosottile/musl-cross/musl-cross mingw-w64)
29+
# Windows: cross-compile with mingw-w64 (brew install mingw-w64)
3130
echo ""
32-
echo "Attempting Linux/Windows builds (may fail without cross-compilers)..."
33-
34-
if CC=x86_64-linux-musl-gcc CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-extldflags -static" -trimpath -o ${OUTPUT_DIR}/devlog-linux-amd64 ./cmd/devlog 2>/dev/null; then
35-
echo " ✓ linux-amd64"
36-
else
37-
echo " ⚠ linux-amd64 skipped (no cross-compiler)"
38-
fi
39-
40-
if CC=aarch64-linux-musl-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-extldflags -static" -trimpath -o ${OUTPUT_DIR}/devlog-linux-arm64 ./cmd/devlog 2>/dev/null; then
41-
echo " ✓ linux-arm64"
31+
echo "Building Windows binary..."
32+
if CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -trimpath -o ${OUTPUT_DIR}/devlog-windows-amd64.exe ./cmd/devlog 2>/dev/null; then
33+
echo " ✓ windows-amd64"
4234
else
43-
echo "linux-arm64 skipped (no cross-compiler)"
35+
echo "windows-amd64 skipped (brew install mingw-w64)"
4436
fi
4537

46-
if CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -trimpath -o ${OUTPUT_DIR}/devlog-windows-amd64.exe ./cmd/devlog 2>/dev/null; then
47-
echo " ✓ windows-amd64"
38+
# Linux: use Docker (DuckDB needs glibc; cross-compile from macOS doesn't work)
39+
echo ""
40+
echo "Building Linux binaries (via Docker)..."
41+
if command -v docker &>/dev/null; then
42+
if docker run --rm --platform linux/amd64 \
43+
-v "$(pwd):/app" -w /app \
44+
-e CGO_ENABLED=1 -e GOOS=linux -e GOARCH=amd64 \
45+
golang:1.24 go build -trimpath -o ${OUTPUT_DIR}/devlog-linux-amd64 ./cmd/devlog 2>/dev/null; then
46+
echo " ✓ linux-amd64"
47+
else
48+
echo " ⚠ linux-amd64 failed"
49+
fi
50+
if docker run --rm --platform linux/arm64 \
51+
-v "$(pwd):/app" -w /app \
52+
-e CGO_ENABLED=1 -e GOOS=linux -e GOARCH=arm64 \
53+
golang:1.24 go build -trimpath -o ${OUTPUT_DIR}/devlog-linux-arm64 ./cmd/devlog 2>/dev/null; then
54+
echo " ✓ linux-arm64"
55+
else
56+
echo " ⚠ linux-arm64 failed"
57+
fi
4858
else
49-
echo " ⚠ windows-amd64 skipped (no cross-compiler)"
59+
echo " ⚠ linux-amd64 skipped (install Docker, or push tag for GitHub Actions)"
60+
echo " ⚠ linux-arm64 skipped (install Docker, or push tag for GitHub Actions)"
5061
fi
5162

5263
echo ""

0 commit comments

Comments
 (0)