handle 1.7 as 1.7.x

This commit is contained in:
Alif Rachmawadi
2019-08-18 21:23:37 +07:00
parent 5fe8a7cf47
commit a1e481922d
2 changed files with 10 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ if (!tempDirectory) {
}
function getFlutter(version, channel) {
return __awaiter(this, void 0, void 0, function* () {
const versionPart = version.split('.');
if (versionPart[1] == null || versionPart[2] == null) {
version = version.concat('.x');
}
version = yield determineVersion(version, channel);
let cleanver = `${version.replace('+', '-')}-${channel}`;
let toolPath = tc.find('flutter', cleanver);