()
| 15 | const BIN_DIR = path.join(__dirname, 'bin'); |
| 16 | |
| 17 | function getPlatform() { |
| 18 | switch (process.platform) { |
| 19 | case 'linux': return 'linux'; |
| 20 | case 'darwin': return 'darwin'; |
| 21 | case 'win32': return 'windows'; |
| 22 | default: throw new Error(`Unsupported platform: ${process.platform}`); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function getArch() { |
| 27 | switch (process.arch) { |