diff --git a/run.js b/run.js index bf8d54e..2afe2db 100644 --- a/run.js +++ b/run.js @@ -41,10 +41,8 @@ async function generate() { const url = `https://github.com/git-for-windows/git/releases/download/v${gfwVersion}/${filename}`; console.debug("url", url); const response = await fetch(url); - const dest = "PortableGit-64-bit.7z.exe"; - await mkdir(dirname(dest), { recursive: true }); - await response.body.pipeTo(Writable.toWeb(createWriteStream(dest))); - console.log("downloaded %o to %o", url, dest); + await response.body.pipeTo(Writable.toWeb(createWriteStream("PortableGit-64-bit.7z.exe"))); + console.log("downloaded %o to %o", url, "PortableGit-64-bit.7z.exe"); } async function build() {