use zip and unzip from path (#161)

This commit is contained in:
Bryan MacFarlane authored and GitHub committed 2019-09-24 17:07:08 -04:00
1 parent 73e29cfaa1
commit db534fd20b
7 files changed
+5 -24

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -6
View File
@@ -287,9 +287,7 @@ describe('@actions/tool-cache', function() {
]
await exec.exec(`"${powershellPath}"`, args)
} else {
const zipBin: string =
process.platform === 'darwin' ? 'zip-darwin' : 'zip'
const zipPath: string = path.join(__dirname, 'externals', zipBin)
const zipPath: string = await io.which('zip')
await exec.exec(`"${zipPath}`, [zipFile, '-r', '.'], {cwd: stagingDir})
}
@@ -340,9 +338,7 @@ describe('@actions/tool-cache', function() {
]
await exec.exec(`"${powershellPath}"`, args)
} else {
const zipBin: string =
process.platform === 'darwin' ? 'zip-darwin' : 'zip'
const zipPath = path.join(__dirname, 'externals', zipBin)
const zipPath: string = await io.which('zip')
await exec.exec(zipPath, [zipFile, '-r', '.'], {cwd: stagingDir})
}