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

Commit 908cdf6

Browse files
committed
cleanup
1 parent ae21660 commit 908cdf6

File tree

3,991 files changed

+440735
-30098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,991 files changed

+440735
-30098
lines changed

lib/downloader.js

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

lib/installer.js

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

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: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
1-
"use strict";
2-
var __importDefault = (this && this.__importDefault) || function (mod) {
3-
return (mod && mod.__esModule) ? mod : { "default": mod };
4-
};
5-
var __importStar = (this && this.__importStar) || function (mod) {
6-
if (mod && mod.__esModule) return mod;
7-
var result = {};
8-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
9-
result["default"] = mod;
10-
return result;
11-
};
12-
Object.defineProperty(exports, "__esModule", { value: true });
13-
const path_1 = __importDefault(require("path"));
14-
const core = __importStar(require("@actions/core"));
15-
const linuxplatform_1 = __importDefault(require("./linuxplatform"));
16-
class AndroidPlatform extends linuxplatform_1.default {
17-
addExtraEnvVars(basePath) {
18-
super.addExtraEnvVars(basePath);
19-
core.exportVariable("ANDROID_SDK_ROOT", process.env["ANDROID_HOME"]);
20-
core.exportVariable("ANDROID_NDK_ROOT", path_1.default.join(process.env["ANDROID_HOME"], "ndk-bundle"));
21-
}
22-
}
23-
exports.default = AndroidPlatform;
1+
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5+
}) : (function(o, m, k, k2) {
6+
if (k2 === undefined) k2 = k;
7+
o[k2] = m[k];
8+
}));
9+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10+
Object.defineProperty(o, "default", { enumerable: true, value: v });
11+
}) : function(o, v) {
12+
o["default"] = v;
13+
});
14+
var __importStar = (this && this.__importStar) || function (mod) {
15+
if (mod && mod.__esModule) return mod;
16+
var result = {};
17+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18+
__setModuleDefault(result, mod);
19+
return result;
20+
};
21+
var __importDefault = (this && this.__importDefault) || function (mod) {
22+
return (mod && mod.__esModule) ? mod : { "default": mod };
23+
};
24+
Object.defineProperty(exports, "__esModule", { value: true });
25+
const path_1 = __importDefault(require("path"));
26+
const core = __importStar(require("@actions/core"));
27+
const linuxplatform_1 = __importDefault(require("./linuxplatform"));
28+
class AndroidPlatform extends linuxplatform_1.default {
29+
addExtraEnvVars(basePath) {
30+
super.addExtraEnvVars(basePath);
31+
core.exportVariable("ANDROID_SDK_ROOT", process.env["ANDROID_HOME"]);
32+
core.exportVariable("ANDROID_NDK_ROOT", path_1.default.join(process.env["ANDROID_HOME"], "ndk-bundle"));
33+
}
34+
}
35+
exports.default = AndroidPlatform;

lib/platforms/linuxplatform.js

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,48 @@
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 __importStar = (this && this.__importStar) || function (mod) {
12-
if (mod && mod.__esModule) return mod;
13-
var result = {};
14-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
15-
result["default"] = mod;
16-
return result;
17-
};
18-
var __importDefault = (this && this.__importDefault) || function (mod) {
19-
return (mod && mod.__esModule) ? mod : { "default": mod };
20-
};
21-
Object.defineProperty(exports, "__esModule", { value: true });
22-
const ex = __importStar(require("@actions/exec"));
23-
const unixplatform_1 = __importDefault(require("./unixplatform"));
24-
class LinuxPlatform extends unixplatform_1.default {
25-
runPreInstall() {
26-
const _super = Object.create(null, {
27-
runPreInstall: { get: () => super.runPreInstall }
28-
});
29-
return __awaiter(this, void 0, void 0, function* () {
30-
yield _super.runPreInstall.call(this);
31-
yield ex.exec("sudo", ["apt-get", "-qq", "update"]);
32-
yield ex.exec("sudo", ["apt-get", "-qq", "install", "libgl1-mesa-dev", "libxkbcommon-x11-0", "doxygen", "doxyqml"]);
33-
});
34-
}
35-
}
36-
exports.default = LinuxPlatform;
1+
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5+
}) : (function(o, m, k, k2) {
6+
if (k2 === undefined) k2 = k;
7+
o[k2] = m[k];
8+
}));
9+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10+
Object.defineProperty(o, "default", { enumerable: true, value: v });
11+
}) : function(o, v) {
12+
o["default"] = v;
13+
});
14+
var __importStar = (this && this.__importStar) || function (mod) {
15+
if (mod && mod.__esModule) return mod;
16+
var result = {};
17+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18+
__setModuleDefault(result, mod);
19+
return result;
20+
};
21+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23+
return new (P || (P = Promise))(function (resolve, reject) {
24+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27+
step((generator = generator.apply(thisArg, _arguments || [])).next());
28+
});
29+
};
30+
var __importDefault = (this && this.__importDefault) || function (mod) {
31+
return (mod && mod.__esModule) ? mod : { "default": mod };
32+
};
33+
Object.defineProperty(exports, "__esModule", { value: true });
34+
const ex = __importStar(require("@actions/exec"));
35+
const unixplatform_1 = __importDefault(require("./unixplatform"));
36+
class LinuxPlatform extends unixplatform_1.default {
37+
runPreInstall() {
38+
const _super = Object.create(null, {
39+
runPreInstall: { get: () => super.runPreInstall }
40+
});
41+
return __awaiter(this, void 0, void 0, function* () {
42+
yield _super.runPreInstall.call(this);
43+
yield ex.exec("sudo", ["apt-get", "-qq", "update"]);
44+
yield ex.exec("sudo", ["apt-get", "-qq", "install", "libgl1-mesa-dev", "libxkbcommon-x11-0", "doxygen", "doxyqml"]);
45+
});
46+
}
47+
}
48+
exports.default = LinuxPlatform;

lib/platforms/macosplatform.js

Lines changed: 53 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,53 @@
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 __importStar = (this && this.__importStar) || function (mod) {
12-
if (mod && mod.__esModule) return mod;
13-
var result = {};
14-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
15-
result["default"] = mod;
16-
return result;
17-
};
18-
var __importDefault = (this && this.__importDefault) || function (mod) {
19-
return (mod && mod.__esModule) ? mod : { "default": mod };
20-
};
21-
Object.defineProperty(exports, "__esModule", { value: true });
22-
const core = __importStar(require("@actions/core"));
23-
const ex = __importStar(require("@actions/exec"));
24-
const unixplatform_1 = __importDefault(require("./unixplatform"));
25-
class MacosPlatform extends unixplatform_1.default {
26-
addExtraEnvVars(basePath) {
27-
super.addExtraEnvVars(basePath);
28-
core.addPath("/usr/local/opt/make/libexec/gnubin");
29-
}
30-
runPreInstall() {
31-
const _super = Object.create(null, {
32-
runPreInstall: { get: () => super.runPreInstall }
33-
});
34-
return __awaiter(this, void 0, void 0, function* () {
35-
yield _super.runPreInstall.call(this);
36-
yield ex.exec("brew", ["update"]);
37-
yield ex.exec("brew", ["install", "make", "p7zip"]);
38-
});
39-
}
40-
}
41-
exports.default = MacosPlatform;
1+
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5+
}) : (function(o, m, k, k2) {
6+
if (k2 === undefined) k2 = k;
7+
o[k2] = m[k];
8+
}));
9+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10+
Object.defineProperty(o, "default", { enumerable: true, value: v });
11+
}) : function(o, v) {
12+
o["default"] = v;
13+
});
14+
var __importStar = (this && this.__importStar) || function (mod) {
15+
if (mod && mod.__esModule) return mod;
16+
var result = {};
17+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18+
__setModuleDefault(result, mod);
19+
return result;
20+
};
21+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23+
return new (P || (P = Promise))(function (resolve, reject) {
24+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27+
step((generator = generator.apply(thisArg, _arguments || [])).next());
28+
});
29+
};
30+
var __importDefault = (this && this.__importDefault) || function (mod) {
31+
return (mod && mod.__esModule) ? mod : { "default": mod };
32+
};
33+
Object.defineProperty(exports, "__esModule", { value: true });
34+
const core = __importStar(require("@actions/core"));
35+
const ex = __importStar(require("@actions/exec"));
36+
const unixplatform_1 = __importDefault(require("./unixplatform"));
37+
class MacosPlatform extends unixplatform_1.default {
38+
addExtraEnvVars(basePath) {
39+
super.addExtraEnvVars(basePath);
40+
core.addPath("/usr/local/opt/make/libexec/gnubin");
41+
}
42+
runPreInstall() {
43+
const _super = Object.create(null, {
44+
runPreInstall: { get: () => super.runPreInstall }
45+
});
46+
return __awaiter(this, void 0, void 0, function* () {
47+
yield _super.runPreInstall.call(this);
48+
yield ex.exec("brew", ["update"]);
49+
yield ex.exec("brew", ["install", "make", "p7zip"]);
50+
});
51+
}
52+
}
53+
exports.default = MacosPlatform;

0 commit comments

Comments
 (0)