You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. (Optional) Move the `c2c` executable to a directory in your system's PATH, for example:
65
-
```bash
66
-
sudo mv c2c /usr/local/bin/
67
-
# or for a local user path
68
-
# mkdir -p ~/bin && mv c2c ~/bin
69
-
# (ensure ~/bin is in your PATH)
70
-
```
64
+
3. (Optional) Move the `c2c` executable to a directory in your system's PATH, for example:
65
+
66
+
```bash
67
+
sudo mv c2c /usr/local/bin/
68
+
# or for a local user path
69
+
# mkdir -p ~/bin && mv c2c ~/bin
70
+
# (ensure ~/bin is in your PATH)
71
+
```
71
72
72
73
### Using `go install` (Recommended for Go users)
73
74
@@ -77,10 +78,56 @@ go install github.com/alexferrari88/code2context@latest
77
78
78
79
This will download, compile, and install the `c2c` binary into your `$GOPATH/bin` or `$GOBIN` directory. Ensure this directory is in your system's PATH.
79
80
80
-
<!--
81
-
### Pre-compiled Binaries (Coming Soon!)
82
-
Once releases are available, you can download pre-compiled binaries for your operating system from the [Releases page](https://github.com/alexferrari88/code2context/releases).
83
-
-->
81
+
### Prebuilt Binaries
82
+
83
+
Prebuilt executables for **macOS (x64/arm64)** and **Linux (x64)** are available on the [Releases page](https://github.com/alexferrari88/code2context/releases).
84
+
85
+
> **Note:** Windows and Linux on ARM64 binaries are not yet provided. If you’re proficient with GitHub Actions and would like to help add these targets, please propose changes to the [release workflow](https://github.com/alexferrari88/code2context/blob/main/.github/workflows/release.yml) and open a pull request.
86
+
87
+
### Adding to PATH
88
+
89
+
Once you've downloaded the appropriate binary for your platform, add it to your system `PATH` so you can run `c2c` from any terminal.
90
+
91
+
#### Linux and macOS
92
+
93
+
1. Make the binary executable:
94
+
95
+
```bash
96
+
chmod +x c2c
97
+
```
98
+
99
+
2. Move it to a directory in your PATH (for example `/usr/local/bin`):
100
+
101
+
```bash
102
+
sudo mv c2c /usr/local/bin/
103
+
```
104
+
105
+
Alternatively, for a user-local install:
106
+
107
+
```bash
108
+
mkdir -p ~/bin
109
+
mv c2c ~/bin
110
+
# Ensure ~/bin is in your PATH (e.g., add `export PATH="$HOME/bin:$PATH"` to your shell profile)
111
+
```
112
+
113
+
#### Windows
114
+
115
+
1. Rename the downloaded executable to `c2c.exe` (if necessary).
116
+
117
+
2. Move it to a permanent directory, for example `C:\tools\c2c`, and then add that directory to your system `PATH`:
118
+
119
+
* Open **System Properties** > **Advanced** > **Environment Variables**.
120
+
* Under **User variables** or **System variables**, select `Path` and click **Edit**.
121
+
* Click **New**, then enter `C:\tools\c2c` (or your chosen folder).
0 commit comments