2020-06-09 20:00:43 +03:00
|
|
|
$homePath = "~";
|
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
|
|
|
|
security import $mobileKeyPath -k build.keychain -P $env:MOBILE_KEY_PASSWORD
|
|
|
|
security import $distCertPath -k build.keychain -P $env:DIST_CERT_PASSWORD
|