()
| 98 | } |
| 99 | |
| 100 | async function main() { |
| 101 | try { |
| 102 | if (os.platform() === "win32") { |
| 103 | // On Windows, the .exe is already included in the package and bin field points to it |
| 104 | // No postinstall setup needed |
| 105 | console.log("Windows detected: binary setup not needed (using packaged .exe)") |
| 106 | return |
| 107 | } |
| 108 | |
| 109 | const { binaryPath, binaryName } = findBinary() |
| 110 | symlinkBinary(binaryPath, binaryName) |
| 111 | } catch (error) { |
| 112 | console.error("Failed to setup arctic binary:", error.message) |
| 113 | process.exit(1) |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | try { |
| 118 | main() |
no test coverage detected