Skip to content

Commit 3421dd8

Browse files
committed
feat: add Windows and macOS builds support
- Add .goreleaser.yml for cross-platform builds (Linux, macOS, Windows) - Build rag-code-mcp, ragcode-installer, index-all for all platforms - Update documentation with installation instructions for all OS - Windows builds as .zip, Linux/macOS as .tar.gz
1 parent 3e9cffa commit 3421dd8

File tree

5 files changed

+182
-5
lines changed

5 files changed

+182
-5
lines changed

.goreleaser.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# GoReleaser configuration for RagCode MCP
2+
# https://goreleaser.com
3+
4+
version: 2
5+
6+
before:
7+
hooks:
8+
- go mod tidy
9+
10+
builds:
11+
# Main MCP server binary
12+
- id: rag-code-mcp
13+
main: ./cmd/rag-code-mcp
14+
binary: rag-code-mcp
15+
env:
16+
- CGO_ENABLED=0
17+
goos:
18+
- linux
19+
- darwin
20+
- windows
21+
goarch:
22+
- amd64
23+
- arm64
24+
ignore:
25+
- goos: windows
26+
goarch: arm64
27+
ldflags:
28+
- -s -w
29+
- -X main.Version={{.Version}}
30+
- -X main.Commit={{.Commit}}
31+
- -X main.Date={{.Date}}
32+
33+
# Installer binary
34+
- id: ragcode-installer
35+
main: ./cmd/install
36+
binary: ragcode-installer
37+
env:
38+
- CGO_ENABLED=0
39+
goos:
40+
- linux
41+
- darwin
42+
- windows
43+
goarch:
44+
- amd64
45+
- arm64
46+
ignore:
47+
- goos: windows
48+
goarch: arm64
49+
ldflags:
50+
- -s -w
51+
52+
# Index-all CLI tool
53+
- id: index-all
54+
main: ./cmd/index-all
55+
binary: index-all
56+
env:
57+
- CGO_ENABLED=0
58+
goos:
59+
- linux
60+
- darwin
61+
- windows
62+
goarch:
63+
- amd64
64+
- arm64
65+
ignore:
66+
- goos: windows
67+
goarch: arm64
68+
ldflags:
69+
- -s -w
70+
71+
archives:
72+
- id: default
73+
format: tar.gz
74+
name_template: >-
75+
{{ .ProjectName }}_
76+
{{- .Os }}_
77+
{{- if eq .Arch "amd64" }}amd64
78+
{{- else if eq .Arch "arm64" }}arm64
79+
{{- else }}{{ .Arch }}{{ end }}
80+
format_overrides:
81+
- goos: windows
82+
format: zip
83+
files:
84+
- README.md
85+
- LICENSE
86+
- llms.txt
87+
88+
checksum:
89+
name_template: 'checksums.txt'
90+
91+
snapshot:
92+
version_template: "{{ incpatch .Version }}-next"
93+
94+
changelog:
95+
sort: asc
96+
filters:
97+
exclude:
98+
- '^docs:'
99+
- '^test:'
100+
- '^chore:'
101+
- Merge pull request
102+
- Merge branch
103+
104+
release:
105+
github:
106+
owner: doITmagic
107+
name: rag-code-mcp
108+
draft: false
109+
prerelease: auto
110+
name_template: "{{.ProjectName}} v{{.Version}}"

QUICKSTART.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,23 @@ curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/ra
2626

2727
That's it! One command downloads, extracts, and runs the installer.
2828

29-
**macOS & Windows:** Coming soon. For now, use the [Local Build](#option-2-local-build-for-developers) option or run Linux in WSL/Docker.
29+
**macOS (Apple Silicon):**
30+
```bash
31+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_arm64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
32+
```
33+
34+
**macOS (Intel):**
35+
```bash
36+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
37+
```
38+
39+
**Windows (PowerShell):**
40+
```powershell
41+
Invoke-WebRequest -Uri "https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_windows_amd64.zip" -OutFile "ragcode.zip"
42+
Expand-Archive ragcode.zip -DestinationPath . -Force
43+
.\ragcode-installer.exe -ollama=docker -qdrant=docker
44+
```
45+
> ⚠️ Windows requires [Docker Desktop](https://www.docker.com/products/docker-desktop/) installed and running.
3046
3147
The installer is end-to-end:
3248
1. ✅ Installs the `rag-code-mcp` and `index-all` binaries into `~/.local/share/ragcode/bin`

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,26 @@ curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/ra
182182

183183
That's it! One command downloads, extracts, and runs the installer.
184184

185-
**macOS & Windows:** Coming soon. For now, use the [Manual Build](#manual-build-for-developers) option or run Linux in WSL/Docker.
185+
**macOS (Apple Silicon):**
186+
```bash
187+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_arm64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
188+
```
189+
190+
**macOS (Intel):**
191+
```bash
192+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
193+
```
194+
195+
**Windows (PowerShell):**
196+
```powershell
197+
# Download and extract
198+
Invoke-WebRequest -Uri "https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_windows_amd64.zip" -OutFile "ragcode.zip"
199+
Expand-Archive ragcode.zip -DestinationPath . -Force
200+
201+
# Run installer (requires Docker Desktop running)
202+
.\ragcode-installer.exe -ollama=docker -qdrant=docker
203+
```
204+
> ⚠️ Windows requires [Docker Desktop](https://www.docker.com/products/docker-desktop/) to be installed and running.
186205
187206
### What the installer does:
188207
1. ✅ Downloads and installs the `rag-code-mcp` binary

llms-full.txt

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,23 @@ Without RagCode, AI assistants must:
176176
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_linux_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
177177
```
178178

179-
**macOS & Windows:** Coming soon. For now, use the Manual Build option or run Linux in WSL/Docker.
179+
**macOS (Apple Silicon):**
180+
```bash
181+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_arm64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
182+
```
183+
184+
**macOS (Intel):**
185+
```bash
186+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
187+
```
188+
189+
**Windows (PowerShell):**
190+
```powershell
191+
Invoke-WebRequest -Uri "https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_windows_amd64.zip" -OutFile "ragcode.zip"
192+
Expand-Archive ragcode.zip -DestinationPath . -Force
193+
.\ragcode-installer.exe -ollama=docker -qdrant=docker
194+
```
195+
> ⚠️ Windows requires [Docker Desktop](https://www.docker.com/products/docker-desktop/) installed and running.
180196

181197
The installer is end-to-end:
182198
1. ✅ Installs the `rag-code-mcp` and `index-all` binaries into `~/.local/share/ragcode/bin`
@@ -529,7 +545,23 @@ RagCode is an MCP (Model Context Protocol) server that allows you to navigate an
529545
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_linux_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
530546
```
531547

532-
**macOS & Windows:** Coming soon. For now, use the Manual Build option or run Linux in WSL/Docker.
548+
**macOS (Apple Silicon):**
549+
```bash
550+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_arm64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
551+
```
552+
553+
**macOS (Intel):**
554+
```bash
555+
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker
556+
```
557+
558+
**Windows (PowerShell):**
559+
```powershell
560+
Invoke-WebRequest -Uri "https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_windows_amd64.zip" -OutFile "ragcode.zip"
561+
Expand-Archive ragcode.zip -DestinationPath . -Force
562+
.\ragcode-installer.exe -ollama=docker -qdrant=docker
563+
```
564+
> ⚠️ Windows requires [Docker Desktop](https://www.docker.com/products/docker-desktop/) installed and running.
533565

534566
The installer will:
535567
1. ✅ Download and install the `rag-code-mcp` and `index-all` binaries into `~/.local/share/ragcode/bin`

llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
- **IDEs:** Windsurf, Cursor, VS Code + GitHub Copilot, Claude Desktop, Antigravity
1717
- **Languages:** Go, PHP (Laravel), Python, JavaScript
18-
- **OS:** Linux (amd64) - macOS/Windows coming soon
18+
- **OS:** Linux, macOS, Windows (all require Docker)
1919

2020
## Quick Install (Linux)
2121

0 commit comments

Comments
 (0)