Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5188e41281 | ||
|
|
1ced41a989 | ||
|
|
4ac301c302 | ||
|
|
0600af6a5c | ||
|
|
1c63d3b831 | ||
|
|
086f9fb649 | ||
|
|
8f6ad7c383 |
9
dist/index.js
vendored
9
dist/index.js
vendored
@@ -123,9 +123,14 @@ function getFlutter(version, channel) {
|
|||||||
toolPath = yield tc.cacheDir(sdkDir, 'flutter', cleanver);
|
toolPath = yield tc.cacheDir(sdkDir, 'flutter', cleanver);
|
||||||
}
|
}
|
||||||
core.exportVariable('FLUTTER_ROOT', toolPath);
|
core.exportVariable('FLUTTER_ROOT', toolPath);
|
||||||
|
let pubCachePath = process.env['PUB_CACHE'] || '';
|
||||||
|
if (!pubCachePath) {
|
||||||
|
pubCachePath = path.join(toolPath, '.pub-cache');
|
||||||
|
core.exportVariable('PUB_CACHE', pubCachePath);
|
||||||
|
}
|
||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
||||||
core.addPath(path.join(toolPath, '.pub-cache', 'bin'));
|
core.addPath(path.join(pubCachePath, 'bin'));
|
||||||
if (useMaster) {
|
if (useMaster) {
|
||||||
yield exec.exec('flutter', ['channel', 'master']);
|
yield exec.exec('flutter', ['channel', 'master']);
|
||||||
yield exec.exec('flutter', ['upgrade']);
|
yield exec.exec('flutter', ['upgrade']);
|
||||||
@@ -226,7 +231,7 @@ exports.determineVersion = exports.getPlatform = exports.storageUrl = void 0;
|
|||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const httpm = __importStar(__nccwpck_require__(9925));
|
const httpm = __importStar(__nccwpck_require__(9925));
|
||||||
const semver = __importStar(__nccwpck_require__(1383));
|
const semver = __importStar(__nccwpck_require__(1383));
|
||||||
exports.storageUrl = 'https://storage.googleapis.com/flutter_infra/releases';
|
exports.storageUrl = 'https://storage.googleapis.com/flutter_infra_release/releases';
|
||||||
function getPlatform() {
|
function getPlatform() {
|
||||||
const platform = process.platform;
|
const platform = process.platform;
|
||||||
if (platform == 'win32') {
|
if (platform == 'win32') {
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -2491,9 +2491,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hosted-git-info": {
|
"hosted-git-info": {
|
||||||
"version": "2.7.1",
|
"version": "2.8.9",
|
||||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
|
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
|
||||||
"integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==",
|
"integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"html-encoding-sniffer": {
|
"html-encoding-sniffer": {
|
||||||
|
|||||||
@@ -46,9 +46,17 @@ export async function getFlutter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
core.exportVariable('FLUTTER_ROOT', toolPath);
|
core.exportVariable('FLUTTER_ROOT', toolPath);
|
||||||
|
|
||||||
|
let pubCachePath = process.env['PUB_CACHE'] || '';
|
||||||
|
|
||||||
|
if (!pubCachePath) {
|
||||||
|
pubCachePath = path.join(toolPath, '.pub-cache');
|
||||||
|
core.exportVariable('PUB_CACHE', pubCachePath);
|
||||||
|
}
|
||||||
|
|
||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
||||||
core.addPath(path.join(toolPath, '.pub-cache', 'bin'));
|
core.addPath(path.join(pubCachePath, 'bin'));
|
||||||
|
|
||||||
if (useMaster) {
|
if (useMaster) {
|
||||||
await exec.exec('flutter', ['channel', 'master']);
|
await exec.exec('flutter', ['channel', 'master']);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import * as httpm from '@actions/http-client';
|
|||||||
import * as semver from 'semver';
|
import * as semver from 'semver';
|
||||||
|
|
||||||
export const storageUrl =
|
export const storageUrl =
|
||||||
'https://storage.googleapis.com/flutter_infra/releases';
|
'https://storage.googleapis.com/flutter_infra_release/releases';
|
||||||
|
|
||||||
interface IFlutterData {
|
interface IFlutterData {
|
||||||
channel: string;
|
channel: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user