From ac27b9387917364abbd5465efb7e7c63e96919b2 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Mon, 30 Sep 2019 22:33:40 +0800 Subject: [PATCH] fix --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7bfe8c1..5b8b93b 100644 --- a/index.js +++ b/index.js @@ -19,13 +19,14 @@ async function winInstall(version) { : `https://github.com/xmake-io/xmake/releases/download/v$v/xmake-v${version}.exe` core.info(`downloading from ${url}`) const file = await toolCache.downloadTool(url) - const exe = path.format({ ...path.parse(file), ext: '.exe' }) + const exe = path.format({ ...path.parse(file), ext: '.exe', base: undefined }) await fs.rename(file, exe) core.info(`downloaded to ${exe}`) return exe }) toolDir = await core.group("install xmake", async () => { const binDir = path.join(os.tmpdir(), `xmake-${version}`) + core.info(`installing to ${binDir}`) await exec(`"${installer}" /NOADMIN /S /D=${binDir}`) core.info(`installed to ${binDir}`) const cacheDir = await toolCache.cacheDir(binDir, 'xmake', version)