Skip to content

Commit

Permalink
Update environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ddalcino committed May 9, 2023
1 parent bd8cc44 commit 5be1905
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,11 @@ const run = async (): Promise<void> => {
if (process.platform !== "win32") {
setOrAppendEnvVar("PKG_CONFIG_PATH", nativePath(`${qtPath}/lib/pkgconfig`));
}
// If less than qt6, set qt5_dir variable, otherwise set qt6_dir variable
// If less than qt6, set Qt5_DIR variable
if (compareVersions(inputs.version, "<", "6.0.0")) {
core.exportVariable("Qt5_Dir", qtPath); // Incorrect name that was fixed, but kept around so it doesn't break anything
core.exportVariable("Qt5_DIR", qtPath);
} else {
core.exportVariable("Qt6_DIR", qtPath);
core.exportVariable("Qt5_DIR", nativePath(`${qtPath}/lib/cmake`));
}
core.exportVariable("QT_ROOT_DIR", qtPath);
core.exportVariable("QT_PLUGIN_PATH", nativePath(`${qtPath}/plugins`));
core.exportVariable("QML2_IMPORT_PATH", nativePath(`${qtPath}/qml`));
core.addPath(nativePath(`${qtPath}/bin`));
Expand Down

0 comments on commit 5be1905

Please sign in to comment.