From b14481040ac00cb45d01dbffeab7ca93667de5c6 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Fri, 16 Aug 2019 15:36:09 +0700 Subject: [PATCH] updated lib --- lib/installer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index b861ac0..c97322f 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -49,7 +49,7 @@ function getFlutter(version, channel) { // make semver compatible, eg: 1.7.8+hotfix.4 -> 1.7.8-hotfix.4 const semver = version.replace('+', '-'); const cleanver = `${semver}-${channel}`; - let toolPath = tc.find('Flutter', cleanver); + let toolPath = tc.find('flutter', cleanver); if (toolPath) { core.debug(`Tool found in cache ${toolPath}`); } @@ -60,7 +60,7 @@ function getFlutter(version, channel) { let tempDir = generateTempDir(); const sdkDir = yield extractDownload(sdkFile, tempDir); core.debug(`Flutter sdk extracted to ${sdkDir}`); - toolPath = yield tc.cacheDir(sdkDir, 'Flutter', cleanver); + toolPath = yield tc.cacheDir(sdkDir, 'flutter', cleanver); } core.exportVariable('FLUTTER_HOME', toolPath); core.addPath(path.join(toolPath, 'bin'));