mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
create profiles dir path if it doesnt exist
This commit is contained in:
parent
45e2ffd71e
commit
766b4f7971
1 changed files with 9 additions and 6 deletions
15
.github/scripts/ios/setup-profiles.ps1
vendored
15
.github/scripts/ios/setup-profiles.ps1
vendored
|
@ -4,15 +4,18 @@ $secretsPath = $homePath + "/secrets"
|
|||
$autofillProfilePath = $($secretsPath + "/dist_autofill.mobileprovision");
|
||||
$bitwardenProfilePath = $($secretsPath + "/dist_bitwarden.mobileprovision");
|
||||
$extensionProfilePath = $($secretsPath + "/dist_extension.mobileprovision");
|
||||
$profilesDirPath = "~/Library/MobileDevice/Provisioning Profiles"
|
||||
|
||||
if (!(Test-Path -Path $profilesDirPath))
|
||||
{
|
||||
New-Item -ItemType Directory -Path $profilesDirPath
|
||||
}
|
||||
|
||||
$autofill_uuid = grep UUID -A1 -a $autofillProfilePath | grep -io "[-A-F0-9]\{36\}"
|
||||
Copy-Item $autofillProfilePath `
|
||||
-destination "~/Library/MobileDevice/Provisioning Profiles/$autofill_uuid.mobileprovision"
|
||||
Copy-Item $autofillProfilePath -destination "$profilesDirPath/$autofill_uuid.mobileprovision"
|
||||
|
||||
$bitwarden_uuid = grep UUID -A1 -a $bitwardenProfilePath | grep -io "[-A-F0-9]\{36\}"
|
||||
Copy-Item $bitwardenProfilePath `
|
||||
-destination "~/Library/MobileDevice/Provisioning Profiles/$bitwarden_uuid.mobileprovision"
|
||||
Copy-Item $bitwardenProfilePath -destination "$profilesDirPath/$bitwarden_uuid.mobileprovision"
|
||||
|
||||
$extension_uuid = grep UUID -A1 -a $extensionProfilePath | grep -io "[-A-F0-9]\{36\}"
|
||||
Copy-Item $extensionProfilePath `
|
||||
-destination "~/Library/MobileDevice/Provisioning Profiles/$extension_uuid.mobileprovision"
|
||||
Copy-Item $extensionProfilePath -destination "$profilesDirPath/$extension_uuid.mobileprovision"
|
||||
|
|
Loading…
Reference in a new issue