Skip to content

Commit

Permalink
compile 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed Apr 15, 2020
1 parent b0d3b64 commit 51ecee1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ function run() {
let arch = core.getInput("arch");
let modules = core.getInput("modules").split(" ");
let mirror = core.getInput("mirror");
let extra = core.getInput("extra").split(" ");
;
//set host automatically if omitted
if (!host) {
switch (process.platform) {
Expand Down Expand Up @@ -74,16 +76,21 @@ function run() {
if (arch && (host == "windows" || target == "android")) {
args.push(`${arch}`);
}
if (mirror) {
args.push("-b");
args.push(mirror);
}
if (extra) {
extra.forEach(function (string) {
args.push(string);
});
}
if (modules) {
args.push("-m");
modules.forEach(function (currentModule) {
args.push(currentModule);
});
}
if (mirror) {
args.push("-b");
args.push(mirror);
}
//accomodate for differences in python 3 executable name
let pythonName = "python3";
if (process.platform == "win32") {
Expand Down

0 comments on commit 51ecee1

Please sign in to comment.