From df15fa2f0e8a6c9964edbd0c5f4ee60c8b2f1152 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 9 Jun 2020 20:47:46 -0400 Subject: [PATCH] move stuff to setup keychain script --- .github/scripts/ios/build.ps1 | 6 ------ .github/scripts/ios/setup-keychain.ps1 | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/scripts/ios/build.ps1 b/.github/scripts/ios/build.ps1 index a958378cc..675f19328 100644 --- a/.github/scripts/ios/build.ps1 +++ b/.github/scripts/ios/build.ps1 @@ -4,12 +4,6 @@ [string] $platform = "iPhone" ) -# -security default-keychain -s build.keychain -security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain -security set-keychain-settings -lut 1200 build.keychain -security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain - $rootPath = $env:GITHUB_WORKSPACE; $iosPath = $($rootPath + "/src/iOS/iOS.csproj"); diff --git a/.github/scripts/ios/setup-keychain.ps1 b/.github/scripts/ios/setup-keychain.ps1 index c9273442e..30dae13df 100644 --- a/.github/scripts/ios/setup-keychain.ps1 +++ b/.github/scripts/ios/setup-keychain.ps1 @@ -7,5 +7,8 @@ $distCertPath = $($secretsPath + "/iphone-distribution-cert.p12"); 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 set-keychain-settings -lut 1200 build.keychain 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 +security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain +security find-identity -v -p codesigning