Compare commits

...

4 commits

Author SHA1 Message Date
Roman Telezhynskyi 2c0035bb2f Rebuild deps. 2023-09-15 09:27:39 +03:00
Roman Telezhynskyi e5087302e7 DMG license causes issues in Qbs. 2023-09-15 09:21:13 +03:00
Roman Telezhynskyi ea71d5ff56 Wait Puzzle and Tape before building Valentina on MacOS in case of multibundle. 2023-09-15 09:05:24 +03:00
Roman Telezhynskyi 080800c2d4 Prevent build keychain from locking. 2023-09-14 21:21:12 +03:00
4 changed files with 21 additions and 9 deletions

View file

@ -205,6 +205,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- security default-keychain -s $HOME/Library/Keychains/build.keychain
# Unlock the keychain
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
- security set-keychain-settings $HOME/Library/Keychains/build.keychain
# Check if System.keychain is not cluttered
# good: 60K
# bad: 25MB
@ -256,7 +257,6 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
- whereis python
- pwd
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
- conan profile new valentina
- conan profile update settings.build_type=Release valentina
- conan profile update settings.os=Macos valentina

View file

@ -628,6 +628,7 @@ for:
- security default-keychain -s $HOME/Library/Keychains/build.keychain
# Unlock the keychain
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
- security set-keychain-settings $HOME/Library/Keychains/build.keychain
# Check if System.keychain is not cluttered
# good: 60K
# bad: 25MB
@ -668,7 +669,7 @@ for:
sudo ln -s /usr/local /opt/local;
cache_tag=usr_local_1 # this can be modified to rebuild deps
cache_tag=usr_local_2 # this can be modified to rebuild deps
cdir=$HOME/cache_dir
cache_tar=$cdir/$cache_tag.tar
@ -692,7 +693,7 @@ for:
python3 ./scripts/treestate.py scan /usr/local usrlocal.json
brew update
brew install coreutils ccache git openssl@1.1 pkg-config
brew install coreutils ccache git openssl@1.1 pkg-config qbs
# The build environment is now ready for use. We can complete
# the rest of the process of creating the Homebrew archive
@ -724,11 +725,14 @@ for:
- qmake --version
- which qmake
- qbs --version
# Patch Qbs. Remove after Qbs 2.1.2+.
- curl https://gist.githubusercontent.com/dismine/43a20f66f563232e54e02f2e85732e7a/raw/e80a0c827348da3e99310ba4a648c1860bb3a8a6/BundleModule.qbs --output $HOME/BundleModule.qbs --silent
- cp -f $HOME/BundleModule.qbs $(brew --prefix qbs)/share/qbs/modules/bundle/BundleModule.qbs
- rm $HOME/BundleModule.qbs
- cd ${APPVEYOR_BUILD_FOLDER}
build_script:
- pwd
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=missing
- qbs setup-toolchains --detect
- qbs config --list profiles
@ -805,6 +809,7 @@ for:
- security default-keychain -s $HOME/Library/Keychains/build.keychain
# Unlock the keychain
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
- security set-keychain-settings $HOME/Library/Keychains/build.keychain
# Check if System.keychain is not cluttered
# good: 60K
# bad: 25MB
@ -849,7 +854,6 @@ for:
build_script:
- pwd
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=missing
- qbs setup-toolchains --detect
- qbs config --list profiles

14
dmg.qbs
View file

@ -1,5 +1,6 @@
import qbs.File
import qbs.FileInfo
import qbs.Utilities
VAppleApplicationDiskImage {
Depends { name: "buildconfig" }
@ -43,10 +44,15 @@ VAppleApplicationDiskImage {
codesign.signingType: "apple-id"
}
files: [
"dist/macx/dmg/dmg.iconset",
"dist/macx/dmg/en_US.lproj/LICENSE"
]
files: {
var files = ["dist/macx/dmg/dmg.iconset"];
// Tested on 2.1.1. At least this version doesn't crash even if the feature still doesn't work
if (Utilities.versionCompare(qbs.version, "2.1.1") >= 0)
files.push("dist/macx/dmg/en_US.lproj/LICENSE");
return files;
}
Group {
name: "Bundles"

View file

@ -15,6 +15,8 @@ VToolApp {
Depends { name: "VFormatLib"; }
Depends { name: "VMiscLib"; }
Depends { name: "VGAnalyticsLib" }
Depends { name: "Tape"; condition: qbs.targetOS.contains("macos") && buildconfig.enableMultiBundle }
Depends { name: "Puzzle"; condition: qbs.targetOS.contains("macos") && buildconfig.enableMultiBundle }
Depends {
name: "Qt.xmlpatterns"