Commit 37f2d0b
fix(chocolatey): use path.dirname() instead of string manipulation for cross-platform compatibility
The previous code used lastIndexOf('/') to extract directory paths, which fails on Windows
where path.join() uses backslashes. This caused `mkdir -p ""` errors when writing package files.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 249d56c commit 37f2d0b
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
222 | 221 | | |
223 | 222 | | |
224 | 223 | | |
| |||
0 commit comments