1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00

Merge pull request #79 from jpnurmi/pub-cache-path

Add .pub-cache/bin to PATH
This commit is contained in:
Alif Rachmawadi 2021-03-07 19:03:55 +07:00 committed by GitHub
commit 123325ea84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View file

@ -126,6 +126,7 @@ function getFlutter(version, channel) {
core.exportVariable('FLUTTER_ROOT', toolPath);
core.addPath(path.join(toolPath, 'bin'));
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
core.addPath(path.join(toolPath, '.pub-cache', 'bin'));
if (useMaster) {
yield exec.exec('flutter', ['channel', 'master']);
yield exec.exec('flutter', ['upgrade']);

View file

@ -48,6 +48,7 @@ export async function getFlutter(
core.exportVariable('FLUTTER_ROOT', toolPath);
core.addPath(path.join(toolPath, 'bin'));
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
core.addPath(path.join(toolPath, '.pub-cache', 'bin'));
if (useMaster) {
await exec.exec('flutter', ['channel', 'master']);