2020-06-09 20:09:00 +03:00
|
|
|
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path;
|
2020-06-09 18:48:11 +03:00
|
|
|
$secretsPath = $homePath + "/secrets"
|
2020-06-09 18:37:40 +03:00
|
|
|
|
2020-06-09 18:48:11 +03:00
|
|
|
$mobileKeyPath = $($secretsPath + "/bitwarden-mobile-key.p12");
|
|
|
|
$distCertPath = $($secretsPath + "/iphone-distribution-cert.p12");
|
2020-06-09 18:37:40 +03:00
|
|
|
|
|
|
|
security create-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
|
|
|
|
security default-keychain -s build.keychain
|
|
|
|
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
|
2020-06-10 03:47:46 +03:00
|
|
|
security set-keychain-settings -lut 1200 build.keychain
|
2020-06-10 03:36:44 +03:00
|
|
|
security import $mobileKeyPath -k build.keychain -P $env:MOBILE_KEY_PASSWORD -T /usr/bin/codesign -T /usr/bin/security
|
|
|
|
security import $distCertPath -k build.keychain -P $env:DIST_CERT_PASSWORD -T /usr/bin/codesign -T /usr/bin/security
|
2020-06-10 03:47:46 +03:00
|
|
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain
|