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 installDebugInformation: true
consoleApplication: false consoleApplication: false
bundle.isBundle: qbs.buildVariant === "release" bundle.isBundle: qbs.buildVariant === "release"
bundle.identifierPrefix: 'ua.com.smart-pattern'
Properties { bundle.infoPlist:({
// Breakpoints do not work if debug the app inside of bundle. In debug mode we turn off creating a bundle. "NSHumanReadableCopyright": buildconfig.valentina_copyright_string
// 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
}
Properties { Properties {
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos") condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")

View File

@ -22,6 +22,9 @@ Module {
property bool enableAppImage: false 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"; } Depends { name: "ccache"; }
// Use this property to disable the use of 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 # Name of binary file
TARGET = puzzle TARGET = puzzle
VERSION = 0.7.52
# We want create executable file # We want create executable file
TEMPLATE = app TEMPLATE = app

View File

@ -272,4 +272,13 @@ VToolApp {
qbs.install: true qbs.install: true
qbs.installDir: buildconfig.installAppPath 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 # Name of binary file
TARGET = tape TARGET = tape
VERSION = 0.7.52
# We want create executable file # We want create executable file
TEMPLATE = app TEMPLATE = app

View File

@ -217,4 +217,13 @@ VToolApp {
qbs.install: true qbs.install: true
qbs.installDir: buildconfig.installAppPath 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 TARGET = valentina
} }
VERSION = 0.7.52
# Use out-of-source builds (shadow builds) # Use out-of-source builds (shadow builds)
CONFIG -= debug_and_release debug_and_release_target CONFIG -= debug_and_release debug_and_release_target

View File

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