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'));