mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
updated lib
This commit is contained in:
parent
88fdaa7568
commit
b14481040a
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ function getFlutter(version, channel) {
|
||||||
// make semver compatible, eg: 1.7.8+hotfix.4 -> 1.7.8-hotfix.4
|
// make semver compatible, eg: 1.7.8+hotfix.4 -> 1.7.8-hotfix.4
|
||||||
const semver = version.replace('+', '-');
|
const semver = version.replace('+', '-');
|
||||||
const cleanver = `${semver}-${channel}`;
|
const cleanver = `${semver}-${channel}`;
|
||||||
let toolPath = tc.find('Flutter', cleanver);
|
let toolPath = tc.find('flutter', cleanver);
|
||||||
if (toolPath) {
|
if (toolPath) {
|
||||||
core.debug(`Tool found in cache ${toolPath}`);
|
core.debug(`Tool found in cache ${toolPath}`);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ function getFlutter(version, channel) {
|
||||||
let tempDir = generateTempDir();
|
let tempDir = generateTempDir();
|
||||||
const sdkDir = yield extractDownload(sdkFile, tempDir);
|
const sdkDir = yield extractDownload(sdkFile, tempDir);
|
||||||
core.debug(`Flutter sdk extracted to ${sdkDir}`);
|
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.exportVariable('FLUTTER_HOME', toolPath);
|
||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
|
|
Loading…
Reference in a new issue