(destDir, backups)
| 370 | } |
| 371 | |
| 372 | function restoreBinaryBackups(destDir, backups) { |
| 373 | for (const name of [WINDOWS_BINARY_NAME]) { |
| 374 | const backup = backups.get(name); |
| 375 | const target = path.join(destDir, name); |
| 376 | if (!backup || fs.existsSync(target)) continue; |
| 377 | try { fs.renameSync(backup, target); } catch (_) { /* preserve backup */ } |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | function installWindowsBinaryAtomically(sourceDir, destDir, verifier = verifyCandidate) { |
| 382 | // Authenticate the source binary before it can contend for the cache. |
no outgoing calls
no test coverage detected