Skip to content

Commit

Permalink
write zip file in path
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Jun 19, 2022
1 parent 27fee4d commit 72782ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Expand Up @@ -191,12 +191,12 @@ async function main() {
})

if (skipUnpack) {
fs.writeFileSync(`${artifact.name}.zip`, Buffer.from(zip.data), 'binary')
fs.writeFileSync(`${pathname.join(path, artifact.name)}.zip`, Buffer.from(zip.data), 'binary')
continue
}

const dir = name ? path : pathname.join(path, artifact.name)

fs.mkdirSync(dir, { recursive: true })

const adm = new AdmZip(Buffer.from(zip.data))
Expand Down

0 comments on commit 72782ee

Please sign in to comment.