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

@@ -36,6 +36,12 @@ export async function getFlutter(
version: string,
channel: string
): Promise<void> {
const versionPart = version.split('.');
if (versionPart[1] == null || versionPart[2] == null) {
version = version.concat('.x');
}
version = await determineVersion(version, channel);
let cleanver = `${version.replace('+', '-')}-${channel}`;