mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
setup provisioning profiles
This commit is contained in:
parent
ca6ce6db32
commit
9aed6d350b
6 changed files with 23 additions and 0 deletions
3
.github/scripts/ios/decrypt-secrets.ps1
vendored
3
.github/scripts/ios/decrypt-secrets.ps1
vendored
|
@ -4,3 +4,6 @@ $decryptSecretPath = $($rootPath + "/.github/scripts/decrypt-secret.ps1");
|
||||||
|
|
||||||
Invoke-Expression "& `"$decryptSecretPath`" -filename bitwarden-mobile-key.p12.gpg"
|
Invoke-Expression "& `"$decryptSecretPath`" -filename bitwarden-mobile-key.p12.gpg"
|
||||||
Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg"
|
Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg"
|
||||||
|
Invoke-Expression "& `"$decryptSecretPath`" -filename dist_autofill.mobileprovision.gpg"
|
||||||
|
Invoke-Expression "& `"$decryptSecretPath`" -filename dist_bitwarden.mobileprovision.gpg"
|
||||||
|
Invoke-Expression "& `"$decryptSecretPath`" -filename dist_extension.mobileprovision.gpg"
|
||||||
|
|
15
.github/scripts/ios/setup-profiles.ps1
vendored
Normal file
15
.github/scripts/ios/setup-profiles.ps1
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
$homePath = $env:HOME;
|
||||||
|
$secretsPath = $homePath + "/secrets"
|
||||||
|
|
||||||
|
$autofillProfilePath = $($secretsPath + "/dist_autofill.mobileprovision");
|
||||||
|
$bitwardenProfilePath = $($secretsPath + "/dist_bitwarden.mobileprovision");
|
||||||
|
$extensionProfilePath = $($secretsPath + "/dist_extension.mobileprovision");
|
||||||
|
|
||||||
|
$autofill_uuid = grep UUID -A1 -a $autofillProfilePath | grep -io "[-A-F0-9]\{36\}"
|
||||||
|
Copy-Item $autofillProfilePath ~/Library/MobileDevice/Provisioning\ Profiles/$autofill_uuid.mobileprovision
|
||||||
|
|
||||||
|
$bitwarden_uuid = grep UUID -A1 -a $bitwardenProfilePath | grep -io "[-A-F0-9]\{36\}"
|
||||||
|
Copy-Item $bitwardenProfilePath ~/Library/MobileDevice/Provisioning\ Profiles/$bitwarden_uuid.mobileprovision
|
||||||
|
|
||||||
|
$extension_uuid = grep UUID -A1 -a $extensionProfilePath | grep -io "[-A-F0-9]\{36\}"
|
||||||
|
Copy-Item $extensionProfilePath ~/Library/MobileDevice/Provisioning\ Profiles/$extension_uuid.mobileprovision
|
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -137,6 +137,11 @@ jobs:
|
||||||
MOBILE_KEY_PASSWORD: ${{ secrets.IOS_KEY_PASSWORD }}
|
MOBILE_KEY_PASSWORD: ${{ secrets.IOS_KEY_PASSWORD }}
|
||||||
DIST_CERT_PASSWORD: ${{ secrets.IOS_DIST_CERT_PASSWORD }}
|
DIST_CERT_PASSWORD: ${{ secrets.IOS_DIST_CERT_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Set up provisioning profiles
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: ./.github/scripts/ios/setup-profiles.ps1
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Restore packages
|
- name: Restore packages
|
||||||
run: nuget restore
|
run: nuget restore
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue