Repository navigation
Commit 7f7d4a2
committed
feat: use XDG_DATA_HOME for install directory
Install binary to $XDG_DATA_HOME/opencode/bin instead of ~/.opencode/bin
to follow XDG Base Directory specification.
- Defaults to ~/.local/share/opencode/bin if XDG_DATA_HOME is not set
- Migrates existing installations from ~/.opencode/bin automatically
- Compatible with existing upgrade detection logic
Fixes anomalyco#51761 parent 6a4ca92 commit 7f7d4a2
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
151 | 166 | | |
152 | 167 | | |
153 | 168 | | |
| |||
259 | 274 | | |
260 | 275 | | |
261 | 276 | | |
| 277 | + | |
262 | 278 | | |
263 | 279 | | |
264 | 280 | | |
| |||
0 commit comments