浏览代码

CI: Set keychain timeout & allow productsign

Gol-D-Ace 8 年之前
父节点
当前提交
5e185444e1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      CI/before-deploy-osx.sh

+ 2 - 1
CI/before-deploy-osx.sh

@@ -27,7 +27,8 @@ openssl aes-256-cbc -K $encrypted_dd3c7f5e9db9_key -iv $encrypted_dd3c7f5e9db9_i
 security create-keychain -p mysecretpassword build.keychain
 security create-keychain -p mysecretpassword build.keychain
 security default-keychain -s build.keychain
 security default-keychain -s build.keychain
 security unlock-keychain -p mysecretpassword build.keychain
 security unlock-keychain -p mysecretpassword build.keychain
-security import Certificates.p12 -k build.keychain -T /usr/bin/codesign
+security set-keychain-settings -t 3600 -u build.keychain
+security import Certificates.p12 -k build.keychain -T /usr/bin/productsign
 productsign --sign 'Developer ID Installer: Hugh Bailey (2MMRE5MTB8)' ./OBS.pkg ./$FILENAME
 productsign --sign 'Developer ID Installer: Hugh Bailey (2MMRE5MTB8)' ./OBS.pkg ./$FILENAME
 
 
 # Move to the folder that travis uses to upload artifacts from
 # Move to the folder that travis uses to upload artifacts from