Optimize installing qm files.

Only on MacOS we need to install for three separate tools.
This commit is contained in:
Roman Telezhynskyi 2023-01-13 16:02:53 +02:00
parent 56850aef55
commit 78076e6dbf
4 changed files with 22 additions and 7 deletions

View File

@ -25,7 +25,8 @@ VApp {
name: "freedesktop" name: "freedesktop"
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator()) prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
files: [ files: [
"ua.com.smart-pattern." + product.targetName + ".desktop" "ua.com.smart-pattern." + product.targetName + ".desktop",
"ua.com.smart-pattern." + product.targetName + ".metainfo.xml"
] ]
} }
@ -84,10 +85,4 @@ VApp {
return files; return files;
} }
} }
Group {
fileTagsFilter: "qm"
qbs.install: true
qbs.installDir: buildconfig.installDataPath + FileInfo.pathSeparator() + "translations"
}
} }

View File

@ -255,4 +255,11 @@ VToolApp {
files: "application-x-valentina-layout.png" files: "application-x-valentina-layout.png"
fileTags: "freedesktop.512x512MimetypesIcons" fileTags: "freedesktop.512x512MimetypesIcons"
} }
Group {
condition: qbs.targetOS.contains("macos")
fileTagsFilter: "qm"
qbs.install: true
qbs.installDir: buildconfig.installDataPath + FileInfo.pathSeparator() + "translations"
}
} }

View File

@ -180,4 +180,11 @@ VToolApp {
files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"] files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"]
fileTags: "freedesktop.512x512MimetypesIcons" fileTags: "freedesktop.512x512MimetypesIcons"
} }
Group {
condition: qbs.targetOS.contains("macos")
fileTagsFilter: "qm"
qbs.install: true
qbs.installDir: buildconfig.installDataPath + FileInfo.pathSeparator() + "translations"
}
} }

View File

@ -278,4 +278,10 @@ VToolApp {
files: "application-x-valentina-pattern.png" files: "application-x-valentina-pattern.png"
fileTags: "freedesktop.512x512MimetypesIcons" fileTags: "freedesktop.512x512MimetypesIcons"
} }
Group {
fileTagsFilter: "qm"
qbs.install: true
qbs.installDir: buildconfig.installDataPath + FileInfo.pathSeparator() + "translations"
}
} }