diff --git a/.github/workflows/npm-generate.yml b/.github/workflows/npm-generate.yml index 9b36f95..cca50e5 100644 --- a/.github/workflows/npm-generate.yml +++ b/.github/workflows/npm-generate.yml @@ -55,4 +55,4 @@ jobs: - run: npm run build - run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/run.js b/run.js index 6712bcd..efc12ec 100644 --- a/run.js +++ b/run.js @@ -41,13 +41,18 @@ async function generate() { const url = `https://github.com/git-for-windows/git/releases/download/v${gfwVersion}/${filename}`; console.debug("url %o", url); const response = await fetch(url); - await response.body.pipeTo(Writable.toWeb(createWriteStream("PortableGit-64-bit.7z.exe"))); + 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() { await mkdir("out", { recursive: true }); - await $({ stdio: "inherit", cwd: "out" })`7z x -aos ../PortableGit-64-bit.7z.exe`; + await $({ + stdio: "inherit", + cwd: "out", + })`7z x -aos ../PortableGit-64-bit.7z.exe`; console.log("extracted to %o", "out"); }