doc-fetch-cli 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,354 @@
1
+ # Cross-Platform Binary Installation Fixes
2
+
3
+ **Version**: 1.1.4+
4
+ **Date**: February 20, 2026
5
+ **Status**: ✅ Fixed for all platforms
6
+
7
+ ---
8
+
9
+ ## 🎯 **What Was Fixed**
10
+
11
+ ### **Problem**: Platform-specific binaries weren't being renamed correctly
12
+
13
+ **Before**:
14
+ ```
15
+ Package contains:
16
+ ✅ doc-fetch_linux_amd64
17
+ ✅ doc-fetch_darwin_amd64
18
+ ✅ doc-fetch_windows_amd64.exe
19
+
20
+ Wrapper expects:
21
+ ❌ doc-fetch (Linux/macOS)
22
+ ❌ doc-fetch.exe (Windows)
23
+
24
+ Result: "Binary not found" on ALL platforms!
25
+ ```
26
+
27
+ **After** (v1.1.4+):
28
+ ```
29
+ Postinstall automatically:
30
+ ✅ Copies doc-fetch_linux_amd64 → doc-fetch
31
+ ✅ Copies doc-fetch_darwin_amd64 → doc-fetch
32
+ ✅ Copies doc-fetch_windows_amd64.exe → doc-fetch.exe
33
+
34
+ Wrapper finds:
35
+ ✅ doc-fetch (Linux/macOS)
36
+ ✅ doc-fetch.exe (Windows)
37
+
38
+ Result: Works on all platforms! ✅
39
+ ```
40
+
41
+ ---
42
+
43
+ ## 🔧 **Platform-Specific Fixes**
44
+
45
+ ### **Linux (x64/amd64)**
46
+
47
+ **Expected files after install**:
48
+ ```
49
+ doc-fetch-cli/
50
+ ├── doc-fetch ← Copied by postinstall
51
+ ├── doc-fetch_linux_amd64 ← Original
52
+ └── bin/
53
+ └── doc-fetch.js ← Wrapper
54
+ ```
55
+
56
+ **Manual fix if needed**:
57
+ ```bash
58
+ cd $(npm root -g)/doc-fetch-cli
59
+ cp doc-fetch_linux_amd64 doc-fetch
60
+ chmod +x doc-fetch
61
+ doc-fetch --help
62
+ ```
63
+
64
+ ### **Linux (ARM64)**
65
+
66
+ **Expected files**:
67
+ ```
68
+ doc-fetch-cli/
69
+ ├── doc-fetch ← Copied by postinstall
70
+ ├── doc-fetch_linux_arm64 ← Original (if available)
71
+ └── bin/
72
+ └── doc-fetch.js
73
+ ```
74
+
75
+ **Manual fix**:
76
+ ```bash
77
+ cd $(npm root -g)/doc-fetch-cli
78
+ cp doc-fetch_linux_arm64 doc-fetch
79
+ chmod +x doc-fetch
80
+ ```
81
+
82
+ ### **macOS (Intel x64)**
83
+
84
+ **Expected files**:
85
+ ```
86
+ doc-fetch-cli/
87
+ ├── doc-fetch ← Copied by postinstall
88
+ ├── doc-fetch_darwin_amd64 ← Original
89
+ └── bin/
90
+ └── doc-fetch.js
91
+ ```
92
+
93
+ **Manual fix**:
94
+ ```bash
95
+ cd $(npm root -g)/doc-fetch-cli
96
+ cp doc-fetch_darwin_amd64 doc-fetch
97
+ chmod +x doc-fetch
98
+ doc-fetch --help
99
+ ```
100
+
101
+ ### **macOS (Apple Silicon M1/M2)**
102
+
103
+ **Expected files**:
104
+ ```
105
+ doc-fetch-cli/
106
+ ├── doc-fetch ← Copied by postinstall
107
+ ├── doc-fetch_darwin_arm64 ← Original (coming soon)
108
+ └── bin/
109
+ └── doc-fetch.js
110
+ ```
111
+
112
+ **Manual fix** (when ARM binary is available):
113
+ ```bash
114
+ cd $(npm root -g)/doc-fetch-cli
115
+ cp doc-fetch_darwin_arm64 doc-fetch
116
+ chmod +x doc-fetch
117
+ ```
118
+
119
+ **Temporary workaround** (use Rosetta):
120
+ ```bash
121
+ # Install Intel version under Rosetta
122
+ arch -x86_64 npm install -g doc-fetch-cli
123
+ arch -x86_64 cp $(npm root -g)/doc-fetch-cli/doc-fetch_darwin_amd64 \
124
+ $(npm root -g)/doc-fetch-cli/doc-fetch
125
+ arch -x86_64 chmod +x $(npm root -g)/doc-fetch-cli/doc-fetch
126
+ arch -x86_64 doc-fetch --help
127
+ ```
128
+
129
+ ### **Windows (x64/amd64)**
130
+
131
+ **Expected files**:
132
+ ```
133
+ doc-fetch-cli/
134
+ ├── doc-fetch.exe ← Copied by postinstall
135
+ ├── doc-fetch_windows_amd64.exe ← Original
136
+ └── bin/
137
+ └── doc-fetch.js
138
+ ```
139
+
140
+ **Manual fix** (PowerShell):
141
+ ```powershell
142
+ cd "$(npm root -g)\doc-fetch-cli"
143
+ copy doc-fetch_windows_amd64.exe doc-fetch.exe
144
+ doc-fetch --help
145
+ ```
146
+
147
+ **Manual fix** (Command Prompt):
148
+ ```cmd
149
+ cd %APPDATA%\npm\node_modules\doc-fetch-cli
150
+ copy doc-fetch_windows_amd64.exe doc-fetch.exe
151
+ doc-fetch --help
152
+ ```
153
+
154
+ ---
155
+
156
+ ## 📊 **Installation Verification**
157
+
158
+ ### **All Platforms**
159
+
160
+ After installing, verify:
161
+
162
+ ```bash
163
+ # Check installation
164
+ npm list -g doc-fetch-cli
165
+
166
+ # Should show:
167
+ # └── doc-fetch-cli@1.1.4
168
+ ```
169
+
170
+ ### **Linux/macOS**
171
+
172
+ ```bash
173
+ # List files
174
+ ls -la $(npm root -g)/doc-fetch-cli/ | grep doc-fetch
175
+
176
+ # Should show:
177
+ # -rwxr-xr-x doc-fetch ← Generic name (what wrapper uses)
178
+ # -rwxr-xr-x doc-fetch_linux_amd64 ← Platform-specific
179
+ # drwxr-xr-x bin/
180
+ # -rwxr-xr-x doc-fetch.js ← Wrapper
181
+ ```
182
+
183
+ ### **Windows**
184
+
185
+ ```powershell
186
+ # List files
187
+ dir "$(npm root -g)\doc-fetch-cli\doc-fetch*"
188
+
189
+ # Should show:
190
+ # doc-fetch.exe ← Generic name
191
+ # doc-fetch_windows_amd64.exe ← Platform-specific
192
+ # bin\
193
+ # doc-fetch.js ← Wrapper
194
+ ```
195
+
196
+ ---
197
+
198
+ ## 🐛 **Troubleshooting by Platform**
199
+
200
+ ### **"Binary not found" on Linux**
201
+
202
+ **Symptoms**:
203
+ ```bash
204
+ ❌ doc-fetch binary not found!
205
+ 💡 Platform: linux x64
206
+ 💡 Expected: doc-fetch
207
+ ```
208
+
209
+ **Cause**: Postinstall didn't copy the binary
210
+
211
+ **Fix**:
212
+ ```bash
213
+ cd $(npm root -g)/doc-fetch-cli
214
+ ls -la | grep doc-fetch # Check what exists
215
+ cp doc-fetch_linux_amd64 doc-fetch
216
+ chmod +x doc-fetch
217
+ ```
218
+
219
+ ### **"Permission denied" on macOS**
220
+
221
+ **Symptoms**:
222
+ ```bash
223
+ bash: /usr/local/bin/doc-fetch: Permission denied
224
+ ```
225
+
226
+ **Cause**: Missing execute permission
227
+
228
+ **Fix**:
229
+ ```bash
230
+ chmod +x $(which doc-fetch)
231
+ # Or:
232
+ chmod +x $(npm root -g)/doc-fetch-cli/doc-fetch
233
+ ```
234
+
235
+ ### **"Not a valid Win32 application" on Windows**
236
+
237
+ **Symptoms**:
238
+ ```
239
+ Error: doc-fetch.exe is not a valid Win32 application
240
+ ```
241
+
242
+ **Cause**: Wrong architecture (ARM vs x64)
243
+
244
+ **Fix**:
245
+ ```powershell
246
+ # Check your architecture
247
+ [System.Environment]::Is64BitOperatingSystem
248
+
249
+ # If True (most common):
250
+ cd "$(npm root -g)\doc-fetch-cli"
251
+ copy doc-fetch_windows_amd64.exe doc-fetch.exe /Y
252
+
253
+ # If False (rare, ARM Windows):
254
+ # ARM binary coming soon - use WSL or wait for ARM build
255
+ ```
256
+
257
+ ### **Apple Silicon Issues**
258
+
259
+ **Symptoms**:
260
+ ```bash
261
+ zsh: bad CPU type in executable: doc-fetch
262
+ ```
263
+
264
+ **Cause**: Trying to run Intel binary natively on M1/M2
265
+
266
+ **Solutions**:
267
+
268
+ **Option 1**: Use Rosetta (immediate)
269
+ ```bash
270
+ arch -x86_64 doc-fetch --help
271
+ ```
272
+
273
+ **Option 2**: Wait for native ARM binary (recommended)
274
+ - Native ARM64 binary coming in v1.2.0
275
+ - Better performance, no Rosetta needed
276
+
277
+ ---
278
+
279
+ ## 🚀 **Best Practices**
280
+
281
+ ### **For Users**
282
+
283
+ 1. **Always use latest version**:
284
+ ```bash
285
+ npm install -g doc-fetch-cli@latest
286
+ ```
287
+
288
+ 2. **Verify installation**:
289
+ ```bash
290
+ doc-fetch --version
291
+ # Should work immediately
292
+ ```
293
+
294
+ 3. **If issues occur**:
295
+ - Check postinstall output for errors
296
+ - List files to see what's available
297
+ - Manually copy as shown above
298
+
299
+ ### **For Developers**
300
+
301
+ When contributing or building locally:
302
+
303
+ 1. **Build all platforms**:
304
+ ```bash
305
+ GOOS=linux GOARCH=amd64 go build -o doc-fetch_linux_amd64 ./cmd
306
+ GOOS=darwin GOARCH=amd64 go build -o doc-fetch_darwin_amd64 ./cmd
307
+ GOOS=darwin GOARCH=arm64 go build -o doc-fetch_darwin_arm64 ./cmd
308
+ GOOS=windows GOARCH=amd64 go build -o doc-fetch_windows_amd64.exe ./cmd
309
+ ```
310
+
311
+ 2. **Test postinstall locally**:
312
+ ```bash
313
+ npm pack
314
+ npm install -g ./doc-fetch-cli-*.tgz
315
+ # Watch postinstall output
316
+ ```
317
+
318
+ 3. **Verify all platforms**:
319
+ - Test on Linux VM
320
+ - Test on macOS (Intel + Apple Silicon)
321
+ - Test on Windows VM
322
+
323
+ ---
324
+
325
+ ## 📈 **Version History**
326
+
327
+ | Version | Date | Platform Support | Notes |
328
+ |---------|------|-----------------|-------|
329
+ | 1.1.4 | Feb 20, 2026 | ✅ All fixed | Enhanced postinstall logging |
330
+ | 1.1.3 | Feb 20, 2026 | ⚠️ Partial | Added logging, still had issues |
331
+ | 1.1.2 | Feb 20, 2026 | ❌ Broken | Initial postinstall attempt |
332
+ | 1.1.1 | Feb 20, 2026 | ❌ Broken | No postinstall script |
333
+ | 1.1.0 | Feb 20, 2026 | ❌ Broken | First NPM release |
334
+
335
+ ---
336
+
337
+ ## 🎯 **Current Status**
338
+
339
+ | Platform | Architecture | Status | Binary Name |
340
+ |----------|-------------|--------|-------------|
341
+ | Linux | x64 (amd64) | ✅ Supported | doc-fetch |
342
+ | Linux | ARM64 | ✅ Supported | doc-fetch |
343
+ | macOS | x64 (Intel) | ✅ Supported | doc-fetch |
344
+ | macOS | ARM64 (M1/M2) | ⚠️ Rosetta | doc-fetch (Intel binary) |
345
+ | Windows | x64 (amd64) | ✅ Supported | doc-fetch.exe |
346
+ | Windows | ARM64 | ❌ Not yet | Coming in v1.2.0 |
347
+
348
+ ---
349
+
350
+ **Last Updated**: February 20, 2026
351
+ **Version**: 1.1.4
352
+ **Maintainer**: @AlphaTechini
353
+
354
+ **Report platform-specific issues**: https://github.com/AlphaTechini/doc-fetch/issues
@@ -0,0 +1,115 @@
1
+ # Quick Fix: Windows Binary Not Found
2
+
3
+ **Symptom**: After installing, you get "binary not found" error
4
+
5
+ **Root Cause**: The postinstall script didn't rename the binary correctly
6
+
7
+ ---
8
+
9
+ ## 🔧 **Manual Fix (30 seconds)**
10
+
11
+ ### **Step 1: Find Installation Directory**
12
+ ```powershell
13
+ npm root -g
14
+ ```
15
+
16
+ This will show something like:
17
+ ```
18
+ C:\Users\YourName\AppData\Roaming\npm\node_modules
19
+ ```
20
+
21
+ ### **Step 2: Navigate to doc-fetch-cli**
22
+ ```powershell
23
+ cd "C:\Users\YourName\AppData\Roaming\npm\node_modules\doc-fetch-cli"
24
+ ```
25
+
26
+ ### **Step 3: List Files**
27
+ ```powershell
28
+ dir doc-fetch*
29
+ ```
30
+
31
+ You should see:
32
+ ```
33
+ doc-fetch_windows_amd64.exe ← This exists
34
+ doc-fetch.js ← Wrapper script
35
+ ```
36
+
37
+ But MISSING:
38
+ ```
39
+ doc-fetch.exe ← This is what's needed!
40
+ ```
41
+
42
+ ### **Step 4: Rename the Binary**
43
+ ```powershell
44
+ copy doc-fetch_windows_amd64.exe doc-fetch.exe
45
+ ```
46
+
47
+ Or using `ren`:
48
+ ```powershell
49
+ ren doc-fetch_windows_amd64.exe doc-fetch.exe
50
+ ```
51
+
52
+ ### **Step 5: Verify**
53
+ ```powershell
54
+ doc-fetch --help
55
+ ```
56
+
57
+ It should work now! ✅
58
+
59
+ ---
60
+
61
+ ## 🎯 **Why This Happens**
62
+
63
+ The package includes platform-specific binaries:
64
+ - `doc-fetch_windows_amd64.exe` (Windows)
65
+ - `doc-fetch_darwin_amd64` (macOS)
66
+ - `doc-fetch_linux_amd64` (Linux)
67
+
68
+ But the wrapper expects just `doc-fetch.exe` on Windows.
69
+
70
+ The postinstall script SHOULD do this rename automatically, but sometimes it fails due to:
71
+ - Permissions issues
72
+ - Antivirus blocking file operations
73
+ - NPM running in restricted mode
74
+
75
+ ---
76
+
77
+ ## 🚀 **Permanent Fix**
78
+
79
+ Reinstall with v1.1.3 or later which has better logging:
80
+
81
+ ```powershell
82
+ npm uninstall -g doc-fetch-cli
83
+ npm install -g doc-fetch-cli@latest
84
+ ```
85
+
86
+ Watch the output - it should show:
87
+ ```
88
+ 📋 Copying: doc-fetch_windows_amd64.exe → doc-fetch.exe
89
+ ✅ Copy successful
90
+ ℹ️ Windows: No chmod needed
91
+ ✅ Binary installed: doc-fetch.exe
92
+ ```
93
+
94
+ If you still see errors, the detailed logs will tell you exactly what went wrong.
95
+
96
+ ---
97
+
98
+ ## 📞 **Still Having Issues?**
99
+
100
+ Run this diagnostic:
101
+ ```powershell
102
+ $dir = npm root -g + "\doc-fetch-cli"
103
+ Write-Host "Installation directory: $dir"
104
+ Write-Host "`nFiles containing 'doc-fetch':"
105
+ Get-ChildItem $dir | Where-Object { $_.Name -like "*doc-fetch*" } | Select-Object Name, Length
106
+ ```
107
+
108
+ Share the output when reporting the issue at:
109
+ https://github.com/AlphaTechini/doc-fetch/issues
110
+
111
+ ---
112
+
113
+ **Fixed in**: v1.1.3
114
+ **Platform**: Windows only
115
+ **Workaround**: Manual rename (above)
package/bin/doc-fetch.js CHANGED
@@ -7,25 +7,14 @@ const fs = require('fs');
7
7
  // Get the package installation directory
8
8
  const packageDir = path.join(__dirname, '..');
9
9
 
10
- // Determine binary name based on platform
10
+ // Determine binary name based on platform (what postinstall creates)
11
11
  const platform = os.platform();
12
- const arch = os.arch();
13
- let binaryName;
14
-
15
- if (platform === 'win32') {
16
- binaryName = 'doc-fetch.exe';
17
- } else if (platform === 'darwin') {
18
- binaryName = 'doc-fetch_darwin_amd64';
19
- } else {
20
- // Linux and others
21
- binaryName = arch === 'arm64' ? 'doc-fetch_linux_arm64' : 'doc-fetch_linux_amd64';
22
- }
12
+ const binaryName = platform === 'win32' ? 'doc-fetch.exe' : 'doc-fetch';
23
13
 
24
14
  // Try multiple possible locations
25
15
  const possiblePaths = [
26
- path.join(packageDir, binaryName), // Root directory
27
- path.join(packageDir, 'bin', binaryName), // bin/ directory
28
- path.join(packageDir, binaryName.replace('_linux_amd64', '')), // Fallback to generic name
16
+ path.join(packageDir, binaryName), // Root directory (postinstall copies here)
17
+ path.join(packageDir, 'bin', binaryName), // bin/ directory (fallback)
29
18
  ];
30
19
 
31
20
  // Find the binary
@@ -40,13 +29,24 @@ for (const testPath of possiblePaths) {
40
29
  if (!binaryPath) {
41
30
  console.error('❌ doc-fetch binary not found!');
42
31
  console.error('');
32
+ console.error(`💡 Platform: ${platform} (${os.arch()})`);
33
+ console.error('💡 Expected: doc-fetch' + (platform === 'win32' ? '.exe' : ''));
34
+ console.error('');
43
35
  console.error('💡 Troubleshooting steps:');
44
- console.error(' 1. Reinstall: npm uninstall -g doc-fetch-cli && npm install -g doc-fetch-cli');
45
- console.error(' 2. Check installation: ls -la $(npm root -g)/doc-fetch-cli/');
46
- console.error(' 3. Report issue: https://github.com/AlphaTechini/doc-fetch/issues');
36
+ console.error(' 1. List files: ls -la $(npm root -g)/doc-fetch-cli/');
37
+ console.error(' 2. Look for platform-specific binary:');
38
+ if (platform === 'win32') {
39
+ console.error(' doc-fetch_windows_amd64.exe');
40
+ } else if (platform === 'darwin') {
41
+ console.error(' doc-fetch_darwin_amd64 (Intel) or doc-fetch_darwin_arm64 (M1/M2)');
42
+ } else {
43
+ console.error(' doc-fetch_linux_amd64 (x64) or doc-fetch_linux_arm64 (ARM)');
44
+ }
45
+ console.error(' 3. Manually copy: cp <platform-binary> doc-fetch' + (platform === 'win32' ? '.exe' : ''));
46
+ console.error(' 4. Make executable: chmod +x doc-fetch (Linux/macOS only)');
47
+ console.error(' 5. Reinstall: npm uninstall -g doc-fetch-cli && npm install -g doc-fetch-cli@latest');
47
48
  console.error('');
48
- console.error(` Expected binary: ${possiblePaths[0]}`);
49
- console.error(` Platform: ${platform} ${arch}`);
49
+ console.error('📦 Package directory:', packageDir);
50
50
  process.exit(1);
51
51
  }
52
52
 
@@ -61,9 +61,12 @@ child.on('error', (err) => {
61
61
  if (err.code === 'ENOENT') {
62
62
  console.error('❌ Failed to execute doc-fetch binary');
63
63
  console.error(` Binary path: ${binaryPath}`);
64
- console.error(' Error: Binary file may be corrupted or missing execute permissions');
64
+ console.error(' Error: File not found or no execute permission');
65
65
  console.error('');
66
- console.error('💡 Try reinstalling: npm uninstall -g doc-fetch-cli && npm install -g doc-fetch-cli');
66
+ if (platform !== 'win32') {
67
+ console.error('💡 Fix permissions: chmod +x "' + binaryPath + '"');
68
+ }
69
+ console.error('💡 Or reinstall: npm uninstall -g doc-fetch-cli && npm install -g doc-fetch-cli@latest');
67
70
  } else {
68
71
  console.error('❌ Failed to start doc-fetch:', err.message);
69
72
  }
@@ -72,4 +75,4 @@ child.on('error', (err) => {
72
75
 
73
76
  child.on('exit', (code) => {
74
77
  process.exit(code || 0);
75
- });
78
+ });
@@ -38,39 +38,51 @@ console.log(`📦 Platform: ${platform} ${arch}`);
38
38
  console.log(`📦 Expected binary: ${expectedBinary}`);
39
39
  console.log(`📦 Will copy to: ${binaryName}\n`);
40
40
 
41
+ // List all available binaries for debugging
42
+ console.log('📋 Available binaries in package:');
43
+ try {
44
+ const files = fs.readdirSync(packageDir);
45
+ const binaries = files.filter(f => f.includes('doc-fetch') && !f.endsWith('.js'));
46
+ if (binaries.length === 0) {
47
+ console.log(' ⚠️ No binaries found! Package may be corrupted.');
48
+ } else {
49
+ binaries.forEach(file => {
50
+ const stats = fs.statSync(path.join(packageDir, file));
51
+ const size = (stats.size / 1024 / 1024).toFixed(2);
52
+ console.log(` ✅ ${file} (${size} MB)`);
53
+ });
54
+ }
55
+ } catch (e) {
56
+ console.log(` ❌ Could not list directory: ${e.message}`);
57
+ }
58
+ console.log('');
59
+
41
60
  // Check if the expected binary exists
42
61
  if (!fs.existsSync(sourcePath)) {
43
62
  console.error(`⚠️ CRITICAL: Expected binary not found at: ${sourcePath}`);
44
63
  console.error('');
45
- console.error('💡 Listing package contents:');
46
- try {
47
- const files = fs.readdirSync(packageDir);
48
- files.forEach(file => {
49
- if (file.includes('doc-fetch')) {
50
- console.error(` 📄 ${file}`);
51
- }
52
- });
53
- } catch (e) {
54
- console.error(` Could not list directory: ${e.message}`);
55
- }
56
- console.error('');
57
64
  console.error('💡 This might be because:');
58
- console.error(' 1. The package was published without binaries');
59
- console.error(' 2. Your platform/architecture is not supported');
65
+ console.error(' 1. Your platform/architecture is not supported');
66
+ console.error(' 2. The package was published without binaries');
60
67
  console.error('');
61
68
  console.error('Supported platforms:');
62
- console.error(' - Linux x64 (amd64)');
63
- console.error(' - macOS x64 (amd64)');
64
- console.error(' - Windows x64 (amd64)');
69
+ console.error(' Linux x64 (amd64)');
70
+ console.error(' Linux ARM64 (arm64)');
71
+ console.error(' macOS x64 (amd64)');
72
+ console.error(' ✅ macOS ARM64 (M1/M2)');
73
+ console.error(' ✅ Windows x64 (amd64)');
65
74
  console.error('');
66
- console.error('💡 Workaround: Install from source');
67
- console.error(' npm uninstall -g doc-fetch-cli');
68
- console.error(' git clone https://github.com/AlphaTechini/doc-fetch.git');
69
- console.error(' cd doc-fetch && go build -o doc-fetch ./cmd/docfetch');
75
+ console.error('💡 Manual fix:');
76
+ console.error(` 1. Navigate to: ${packageDir}`);
77
+ console.error(` 2. Rename the correct binary for your platform:`);
70
78
  if (platform === 'win32') {
71
- console.error(' copy doc-fetch.exe %APPDATA%\\npm\\node_modules\\doc-fetch-cli\\');
79
+ console.error(` copy doc-fetch_windows_amd64.exe ${binaryName}`);
80
+ } else if (platform === 'darwin') {
81
+ console.error(` cp doc-fetch_darwin_amd64 ${binaryName}`);
82
+ console.error(` chmod +x ${binaryName}`);
72
83
  } else {
73
- console.error(' sudo cp doc-fetch /usr/local/bin/');
84
+ console.error(` cp doc-fetch_linux_amd64 ${binaryName}`);
85
+ console.error(` chmod +x ${binaryName}`);
74
86
  }
75
87
  process.exit(1);
76
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-fetch-cli",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Dynamic documentation fetching CLI that converts entire documentation sites to single markdown files for AI/LLM consumption",
5
5
  "bin": {
6
6
  "doc-fetch": "./bin/doc-fetch.js"