simplify version

This commit is contained in:
Alif Rachmawadi
2019-08-13 19:01:25 +07:00
parent c8ce10620f
commit 6ed32f0e5a
4 changed files with 7 additions and 7 deletions

View File

@@ -57,7 +57,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', `${version}-${channel}`);
toolPath = yield tc.cacheDir(sdkDir, 'Flutter', version);
}
core.exportVariable('FLUTTER_HOME', toolPath);
core.addPath(path.join(toolPath, 'bin'));
@@ -79,7 +79,7 @@ function extName() {
function getDownloadInfo(version, channel) {
const os = osName();
const ext = extName();
const url = `https://storage.googleapis.com/flutter_infra/releases/${channel}/${os}/flutter_${os}_${version}-${channel}.${ext}`;
const url = `https://storage.googleapis.com/flutter_infra/releases/${channel}/${os}/flutter_${os}_v${version}-${channel}.${ext}`;
return {
version,
url