Fix Windows vendor tmp path

This commit is contained in:
Gregory Schier
2024-07-23 15:28:31 -07:00
parent bf1ad208c5
commit e05d73965a
2 changed files with 4 additions and 3 deletions

View File

@@ -37,8 +37,9 @@ mkdirSync(dstDir, {recursive: true});
(async function () {
const key = `${process.platform}_${process.env.YAAK_TARGET_ARCH ?? process.arch}`;
console.log("Vendoring protoc binary for", key);
const url = URL_MAP[key];
const tmpDir = path.join(__dirname, 'tmp', new Date().toISOString());
const tmpDir = path.join(__dirname, 'tmp', Date.now().toString());
// Download GitHub release artifact
const {filePath} = await new Downloader({url, directory: tmpDir,}).download();