Fix script compatibility.

This commit is contained in:
Roman Telezhynskyi 2024-01-24 15:46:56 +02:00
parent 8e49d56d3b
commit f6e44564ff

View File

@ -2,12 +2,11 @@ import qbs.FileInfo
import qbs.Utilities import qbs.Utilities
import qbs.TemporaryDir import qbs.TemporaryDir
Project { InnoSetup {
InnoSetup {
Depends { name: "buildconfig" } Depends { name: "buildconfig" }
property bool _test: { property bool _test: {
var present = qbs.targetOS.includes("windows") && innosetup.present; var present = qbs.targetOS.contains("windows") && innosetup.present;
console.info("has innosetup: " + present); console.info("has innosetup: " + present);
if (present) { if (present) {
console.info("innosetup version " + innosetup.version); console.info("innosetup version " + innosetup.version);
@ -78,6 +77,4 @@ Project {
qbs.install: true qbs.install: true
qbs.installPrefix: '/' qbs.installPrefix: '/'
} }
}
} }