Skip to content

Commit

Permalink
Update lib to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed Nov 18, 2019
1 parent 18e695c commit 3fb2e0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ function run() {
if (process.platform == "darwin") {
yield exec.exec("brew install p7zip");
}
yield exec.exec("pip3 install \"aqtinstall==0.4.*\"");
const dir = core.getInput("dir") || process.env.RUNNER_WORKSPACE;
yield exec.exec("pip3 install setuptools wheel");
yield exec.exec("pip3 install \"aqtinstall==0.5.*\"");
const dir = (core.getInput("dir") || process.env.RUNNER_WORKSPACE) + "/Qt";
const version = core.getInput("version");
let host = core.getInput("host");
let target = core.getInput("target");
Expand Down Expand Up @@ -71,7 +72,7 @@ function run() {
//run aqtinstall with args
yield exec.exec(`${pythonName} -m aqt install`, args);
//set environment variables
let qtPath = dir + "/Qt" + version + "/" + version;
let qtPath = dir + "/" + version;
qtPath = glob.sync(qtPath + '/**/*')[0];
core.exportVariable('Qt5_Dir', qtPath);
core.addPath(qtPath + "/bin");
Expand Down

0 comments on commit 3fb2e0a

Please sign in to comment.