summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorAntti Kokko <antti.kokko@qt.io>2022-10-19 11:22:26 +0300
committerAntti Kokko <antti.kokko@qt.io>2022-10-19 13:25:08 +0300
commite5bf28baa1f8246005efebd6203c6b07f246980c (patch)
tree2f56d47ba4baf81dc3f8e5fe166df9d6303c1bed /coin
parent5ab4523851ba0dff863dca84227c22a4ceb35776 (diff)
COIN: Use Pipenv when running notarize script
Make sure Python environment has all the needed module dependencies available. Change-Id: Ibfa3606fea2c155f9b600a16e6075ca6463e907d Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'coin')
-rw-r--r--coin/instructions/make_instructions.yaml16
1 files changed, 14 insertions, 2 deletions
diff --git a/coin/instructions/make_instructions.yaml b/coin/instructions/make_instructions.yaml
index 54584d9b3..d06527f92 100644
--- a/coin/instructions/make_instructions.yaml
+++ b/coin/instructions/make_instructions.yaml
@@ -104,13 +104,25 @@ instructions:
- type: EnvironmentVariable
variableName: QT_CODESIGN_IDENTITY_KEY
variableValue: "A5GTH44LYL"
+ - type: ChangeDirectory
+ directory: "{{.AgentWorkingDir}}/qtsdk/qtsdk/packaging-tools"
+ - type: ExecuteCommand
+ command: "python3 -m pip install pipenv==2022.4.8 --user"
+ maxTimeInSeconds: 1800
+ maxTimeBetweenOutput: 600
+ userMessageOnFailure: "Failed to install Pipenv"
+ - type: ExecuteCommand
+ command: "python3 -m pipenv install --skip-lock"
+ maxTimeInSeconds: 1800
+ maxTimeBetweenOutput: 600
+ userMessageOnFailure: "Failed to install Pipenv requirements"
- type: ExecuteCommand
- command: "{{.AgentWorkingDir}}/qtsdk/qtsdk/packaging-tools/sign_installer.py mac --file={{.SourceDir}}/IfwInstaller/QtInstallerFramework-macOS-x64-4.5.0.app"
+ command: "python3 -m pipenv run python sign_installer.py mac --file={{.SourceDir}}/IfwInstaller/QtInstallerFramework-macOS-x64-4.5.0.app"
maxTimeInSeconds: 36000
maxTimeBetweenOutput: 3600
userMessageOnFailure: "Failed to sign the ifw installer"
- type: ExecuteCommand
- command: "{{.AgentWorkingDir}}/qtsdk/qtsdk/packaging-tools/notarize.py --dmg={{.SourceDir}}/IfwInstaller/QtInstallerFramework-macOS-x64-4.5.0.dmg"
+ command: "python3 -m pipenv run python notarize.py --dmg={{.SourceDir}}/IfwInstaller/QtInstallerFramework-macOS-x64-4.5.0.dmg"
maxTimeInSeconds: 36000
maxTimeBetweenOutput: 3600
userMessageOnFailure: "Failed to notarize the ifw installer"