Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Commit 193f0d3

Browse files
committed
update deps
1 parent 6de3b4e commit 193f0d3

File tree

34 files changed

+1175
-1234
lines changed

34 files changed

+1175
-1234
lines changed

lib/config.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
"use strict";
2-
var __importDefault = (this && this.__importDefault) || function (mod) {
3-
return (mod && mod.__esModule) ? mod : { "default": mod };
4-
};
5-
Object.defineProperty(exports, "__esModule", { value: true });
6-
exports.loadConfig = void 0;
7-
const core_1 = require("@actions/core");
8-
const versionnumber_1 = __importDefault(require("./versionnumber"));
9-
const parseList = (list, seperator) => list
10-
.split(seperator)
11-
.map((e) => e.trim())
12-
.filter((e) => e.length > 0);
13-
exports.loadConfig = () => {
14-
return {
15-
version: versionnumber_1.default.fromString(core_1.getInput("version", { required: true })),
16-
platform: core_1.getInput("platform", { required: true }),
17-
packages: parseList(core_1.getInput("platform"), ","),
18-
deepSources: parseList(core_1.getInput("deep-sources"), " "),
19-
flatSources: parseList(core_1.getInput("flat-sources"), " "),
20-
cacheMode: core_1.getInput("cache-mode"),
21-
clean: core_1.getInput("clean") === "true",
22-
};
23-
};
1+
"use strict";
2+
var __importDefault = (this && this.__importDefault) || function (mod) {
3+
return (mod && mod.__esModule) ? mod : { "default": mod };
4+
};
5+
Object.defineProperty(exports, "__esModule", { value: true });
6+
exports.loadConfig = void 0;
7+
const core_1 = require("@actions/core");
8+
const versionnumber_1 = __importDefault(require("./versionnumber"));
9+
const parseList = (list, seperator) => list
10+
.split(seperator)
11+
.map((e) => e.trim())
12+
.filter((e) => e.length > 0);
13+
exports.loadConfig = () => {
14+
return {
15+
version: versionnumber_1.default.fromString(core_1.getInput("version", { required: true })),
16+
platform: core_1.getInput("platform", { required: true }),
17+
packages: parseList(core_1.getInput("platform"), ","),
18+
deepSources: parseList(core_1.getInput("deep-sources"), " "),
19+
flatSources: parseList(core_1.getInput("flat-sources"), " "),
20+
cacheMode: core_1.getInput("cache-mode"),
21+
clean: core_1.getInput("clean") === "true",
22+
};
23+
};

lib/downloader.js

Lines changed: 260 additions & 260 deletions
Large diffs are not rendered by default.

lib/installer.js

Lines changed: 220 additions & 223 deletions
Large diffs are not rendered by default.

lib/main.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
var __importDefault = (this && this.__importDefault) || function (mod) {
12-
return (mod && mod.__esModule) ? mod : { "default": mod };
13-
};
14-
Object.defineProperty(exports, "__esModule", { value: true });
15-
const core_1 = require("@actions/core");
16-
const installer_1 = __importDefault(require("./installer"));
17-
const config_1 = require("./config");
18-
function run() {
19-
return __awaiter(this, void 0, void 0, function* () {
20-
try {
21-
const installer = new installer_1.default(config_1.loadConfig());
22-
yield installer.main();
23-
}
24-
catch (e) {
25-
console.error(e);
26-
core_1.error(e.message);
27-
core_1.setFailed(e.message);
28-
}
29-
});
30-
}
31-
run();
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
var __importDefault = (this && this.__importDefault) || function (mod) {
12+
return (mod && mod.__esModule) ? mod : { "default": mod };
13+
};
14+
Object.defineProperty(exports, "__esModule", { value: true });
15+
const core_1 = require("@actions/core");
16+
const installer_1 = __importDefault(require("./installer"));
17+
const config_1 = require("./config");
18+
function run() {
19+
return __awaiter(this, void 0, void 0, function* () {
20+
try {
21+
const installer = new installer_1.default(config_1.loadConfig());
22+
yield installer.main();
23+
}
24+
catch (e) {
25+
console.error(e);
26+
core_1.error(e.message);
27+
core_1.setFailed(e.message);
28+
}
29+
});
30+
}
31+
run();

lib/package.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
"use strict";
2-
Object.defineProperty(exports, "__esModule", { value: true });
3-
class Package {
4-
constructor(data, baseUrl) {
5-
this._xmlData = data;
6-
this._url = baseUrl;
7-
}
8-
get url() {
9-
return this._url;
10-
}
11-
set url(v) {
12-
this._url = v;
13-
}
14-
get name() {
15-
return this._xmlData.Name;
16-
}
17-
get archives() {
18-
if (typeof this._xmlData.DownloadableArchives !== 'string')
19-
return [];
20-
else {
21-
return this._xmlData.DownloadableArchives
22-
.split(',')
23-
.map(d => d.trim());
24-
}
25-
}
26-
dependencies(platform) {
27-
if (typeof this._xmlData.Dependencies !== 'string')
28-
return [];
29-
else {
30-
return this._xmlData.Dependencies
31-
.split(',')
32-
.map(d => d.trim())
33-
.filter(d => d.includes(platform));
34-
}
35-
}
36-
dlPath(archive) {
37-
return this._xmlData.Name + '/' + this._xmlData.Version + archive;
38-
}
39-
shaPath(archive) {
40-
return this.dlPath(archive + ".sha1");
41-
}
42-
}
43-
exports.default = Package;
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
class Package {
4+
constructor(data, baseUrl) {
5+
this._xmlData = data;
6+
this._url = baseUrl;
7+
}
8+
get url() {
9+
return this._url;
10+
}
11+
set url(v) {
12+
this._url = v;
13+
}
14+
get name() {
15+
return this._xmlData.Name;
16+
}
17+
get archives() {
18+
if (typeof this._xmlData.DownloadableArchives !== 'string')
19+
return [];
20+
else {
21+
return this._xmlData.DownloadableArchives
22+
.split(',')
23+
.map(d => d.trim());
24+
}
25+
}
26+
dependencies(platform) {
27+
if (typeof this._xmlData.Dependencies !== 'string')
28+
return [];
29+
else {
30+
return this._xmlData.Dependencies
31+
.split(',')
32+
.map(d => d.trim())
33+
.filter(d => d.includes(platform));
34+
}
35+
}
36+
dlPath(archive) {
37+
return this._xmlData.Name + '/' + this._xmlData.Version + archive;
38+
}
39+
shaPath(archive) {
40+
return this.dlPath(archive + ".sha1");
41+
}
42+
}
43+
exports.default = Package;

lib/platforms/androidplatform.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
"use strict";
2-
var __importDefault = (this && this.__importDefault) || function (mod) {
3-
return (mod && mod.__esModule) ? mod : { "default": mod };
4-
};
5-
Object.defineProperty(exports, "__esModule", { value: true });
6-
const path_1 = require("path");
7-
const core_1 = require("@actions/core");
8-
const linuxplatform_1 = __importDefault(require("./linuxplatform"));
9-
class AndroidPlatform extends linuxplatform_1.default {
10-
addExtraEnvVars(basePath) {
11-
super.addExtraEnvVars(basePath);
12-
core_1.exportVariable("ANDROID_SDK_ROOT", process.env["ANDROID_HOME"]);
13-
core_1.exportVariable("ANDROID_NDK_ROOT", path_1.join(process.env["ANDROID_HOME"], "ndk-bundle"));
14-
}
15-
}
16-
exports.default = AndroidPlatform;
1+
"use strict";
2+
var __importDefault = (this && this.__importDefault) || function (mod) {
3+
return (mod && mod.__esModule) ? mod : { "default": mod };
4+
};
5+
Object.defineProperty(exports, "__esModule", { value: true });
6+
const path_1 = require("path");
7+
const core_1 = require("@actions/core");
8+
const linuxplatform_1 = __importDefault(require("./linuxplatform"));
9+
class AndroidPlatform extends linuxplatform_1.default {
10+
addExtraEnvVars(basePath) {
11+
super.addExtraEnvVars(basePath);
12+
core_1.exportVariable("ANDROID_SDK_ROOT", process.env["ANDROID_HOME"]);
13+
core_1.exportVariable("ANDROID_NDK_ROOT", path_1.join(process.env["ANDROID_HOME"], "ndk-bundle"));
14+
}
15+
}
16+
exports.default = AndroidPlatform;

lib/platforms/linuxplatform.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
var __importDefault = (this && this.__importDefault) || function (mod) {
12-
return (mod && mod.__esModule) ? mod : { "default": mod };
13-
};
14-
Object.defineProperty(exports, "__esModule", { value: true });
15-
const exec_1 = require("@actions/exec");
16-
const unixplatform_1 = __importDefault(require("./unixplatform"));
17-
class LinuxPlatform extends unixplatform_1.default {
18-
runPreInstall() {
19-
const _super = Object.create(null, {
20-
runPreInstall: { get: () => super.runPreInstall }
21-
});
22-
return __awaiter(this, void 0, void 0, function* () {
23-
yield _super.runPreInstall.call(this);
24-
yield exec_1.exec("sudo", ["apt-get", "-qq", "update"]);
25-
yield exec_1.exec("sudo", ["apt-get", "-qq", "install", "libgl1-mesa-dev", "libxkbcommon-x11-0", "doxygen", "doxyqml"]);
26-
});
27-
}
28-
}
29-
exports.default = LinuxPlatform;
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
var __importDefault = (this && this.__importDefault) || function (mod) {
12+
return (mod && mod.__esModule) ? mod : { "default": mod };
13+
};
14+
Object.defineProperty(exports, "__esModule", { value: true });
15+
const exec_1 = require("@actions/exec");
16+
const unixplatform_1 = __importDefault(require("./unixplatform"));
17+
class LinuxPlatform extends unixplatform_1.default {
18+
runPreInstall() {
19+
const _super = Object.create(null, {
20+
runPreInstall: { get: () => super.runPreInstall }
21+
});
22+
return __awaiter(this, void 0, void 0, function* () {
23+
yield _super.runPreInstall.call(this);
24+
yield exec_1.exec("sudo", ["apt-get", "-qq", "update"]);
25+
yield exec_1.exec("sudo", ["apt-get", "-qq", "install", "libgl1-mesa-dev", "libxkbcommon-x11-0", "doxygen", "doxyqml"]);
26+
});
27+
}
28+
}
29+
exports.default = LinuxPlatform;

lib/platforms/macosplatform.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4-
return new (P || (P = Promise))(function (resolve, reject) {
5-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8-
step((generator = generator.apply(thisArg, _arguments || [])).next());
9-
});
10-
};
11-
var __importDefault = (this && this.__importDefault) || function (mod) {
12-
return (mod && mod.__esModule) ? mod : { "default": mod };
13-
};
14-
Object.defineProperty(exports, "__esModule", { value: true });
15-
const core_1 = require("@actions/core");
16-
const exec_1 = require("@actions/exec");
17-
const unixplatform_1 = __importDefault(require("./unixplatform"));
18-
class MacosPlatform extends unixplatform_1.default {
19-
addExtraEnvVars(basePath) {
20-
super.addExtraEnvVars(basePath);
21-
core_1.addPath("/usr/local/opt/make/libexec/gnubin");
22-
}
23-
runPreInstall() {
24-
const _super = Object.create(null, {
25-
runPreInstall: { get: () => super.runPreInstall }
26-
});
27-
return __awaiter(this, void 0, void 0, function* () {
28-
yield _super.runPreInstall.call(this);
29-
yield exec_1.exec("brew", ["update"]);
30-
yield exec_1.exec("brew", ["install", "make", "p7zip"]);
31-
});
32-
}
33-
}
34-
exports.default = MacosPlatform;
1+
"use strict";
2+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4+
return new (P || (P = Promise))(function (resolve, reject) {
5+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8+
step((generator = generator.apply(thisArg, _arguments || [])).next());
9+
});
10+
};
11+
var __importDefault = (this && this.__importDefault) || function (mod) {
12+
return (mod && mod.__esModule) ? mod : { "default": mod };
13+
};
14+
Object.defineProperty(exports, "__esModule", { value: true });
15+
const core_1 = require("@actions/core");
16+
const exec_1 = require("@actions/exec");
17+
const unixplatform_1 = __importDefault(require("./unixplatform"));
18+
class MacosPlatform extends unixplatform_1.default {
19+
addExtraEnvVars(basePath) {
20+
super.addExtraEnvVars(basePath);
21+
core_1.addPath("/usr/local/opt/make/libexec/gnubin");
22+
}
23+
runPreInstall() {
24+
const _super = Object.create(null, {
25+
runPreInstall: { get: () => super.runPreInstall }
26+
});
27+
return __awaiter(this, void 0, void 0, function* () {
28+
yield _super.runPreInstall.call(this);
29+
yield exec_1.exec("brew", ["update"]);
30+
yield exec_1.exec("brew", ["install", "make", "p7zip"]);
31+
});
32+
}
33+
}
34+
exports.default = MacosPlatform;

0 commit comments

Comments
 (0)