Building Info.plist file.

This commit is contained in:
Roman Telezhynskyi 2023-01-25 08:09:45 -08:00
parent 6e4ec3e69f
commit 53650d6223
8 changed files with 40 additions and 6 deletions

View file

@ -14,13 +14,11 @@ VApp {
installDebugInformation: true
consoleApplication: false
bundle.isBundle: qbs.buildVariant === "release"
bundle.identifierPrefix: 'ua.com.smart-pattern'
Properties {
// Breakpoints do not work if debug the app inside of bundle. In debug mode we turn off creating a bundle.
// Probably it will breake some dependencies. Version for Mac designed to work inside an app bundle.
condition: qbs.targetOS.contains("macos") && qbs.buildVariant == "debug"
bundle.isBundle: false
}
bundle.infoPlist:({
"NSHumanReadableCopyright": buildconfig.valentina_copyright_string
})
Properties {
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")

View file

@ -22,6 +22,9 @@ Module {
property bool enableAppImage: false
property string valentina_copyright_year: { return new Date().getFullYear().toString(); }
property string valentina_copyright_string: "(C) 2013-" + valentina_copyright_year + ", Valentina project"
Depends { name: "ccache"; }
// Use this property to disable the use of ccache.

View file

@ -12,6 +12,8 @@ QT += core gui widgets network xml svg xmlpatterns printsupport concurrent
# Name of binary file
TARGET = puzzle
VERSION = 0.7.52
# We want create executable file
TEMPLATE = app

View file

@ -272,4 +272,13 @@ VToolApp {
qbs.install: true
qbs.installDir: buildconfig.installAppPath
}
Group {
name: "MacOS assets"
condition: qbs.targetOS.contains("macos")
prefix: project.sourceDirectory + "/dist/macx/puzzle/"
files: [
"Info.plist"
]
}
}

View file

@ -12,6 +12,8 @@ QT += core gui widgets network xml xmlpatterns printsupport svg concurrent
# Name of binary file
TARGET = tape
VERSION = 0.7.52
# We want create executable file
TEMPLATE = app

View file

@ -217,4 +217,13 @@ VToolApp {
qbs.install: true
qbs.installDir: buildconfig.installAppPath
}
Group {
name: "MacOS assets"
condition: qbs.targetOS.contains("macos")
prefix: project.sourceDirectory + "/dist/macx/tape/"
files: [
"Info.plist"
]
}
}

View file

@ -28,6 +28,8 @@ macx{
TARGET = valentina
}
VERSION = 0.7.52
# Use out-of-source builds (shadow builds)
CONFIG -= debug_and_release debug_and_release_target

View file

@ -310,4 +310,13 @@ VToolApp {
prefix: product.sourceDirectory + "/share/resources/"
files: "valentina.rc"
}
Group {
name: "MacOS assets"
condition: qbs.targetOS.contains("macos")
prefix: project.sourceDirectory + "/dist/macx/valentina/"
files: [
"Info.plist"
]
}
}