(sourcePath, binaryName)
| 86 | } |
| 87 | |
| 88 | function symlinkBinary(sourcePath, binaryName) { |
| 89 | const { targetPath } = prepareBinDirectory(binaryName) |
| 90 | |
| 91 | fs.symlinkSync(sourcePath, targetPath) |
| 92 | console.log(`arctic binary symlinked: ${targetPath} -> ${sourcePath}`) |
| 93 | |
| 94 | // Verify the file exists after operation |
| 95 | if (!fs.existsSync(targetPath)) { |
| 96 | throw new Error(`Failed to symlink binary to ${targetPath}`) |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | async function main() { |
| 101 | try { |
no test coverage detected