(url, dest)
| 72 | } |
| 73 | |
| 74 | function tryCurlDownload(url, dest) { |
| 75 | const curl = process.platform === 'win32' ? 'curl.exe' : 'curl' |
| 76 | const result = spawnSync(curl, ['-fsSL', '-L', '--fail', '-o', dest, url], { stdio: 'pipe', windowsHide: true }) |
| 77 | return result.status === 0 && existsSync(dest) && statSync(dest).size > 0 |
| 78 | } |
| 79 | |
| 80 | async function fetchRelease(url) { |
| 81 | if (proxyEnvSet()) { |
no test coverage detected