2020-06-09 19:09:00 +02:00
|
|
|
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path;
|
2020-06-09 18:25:09 +02:00
|
|
|
$secretsPath = $homePath + "/secrets"
|
|
|
|
|
|
|
|
$autofillProfilePath = $($secretsPath + "/dist_autofill.mobileprovision");
|
|
|
|
$bitwardenProfilePath = $($secretsPath + "/dist_bitwarden.mobileprovision");
|
|
|
|
$extensionProfilePath = $($secretsPath + "/dist_extension.mobileprovision");
|
2020-06-09 18:35:39 +02:00
|
|
|
$profilesDirPath = "~/Library/MobileDevice/Provisioning Profiles"
|
|
|
|
|
|
|
|
if (!(Test-Path -Path $profilesDirPath))
|
|
|
|
{
|
|
|
|
New-Item -ItemType Directory -Path $profilesDirPath
|
|
|
|
}
|
2020-06-09 18:25:09 +02:00
|
|
|
|
|
|
|
$autofill_uuid = grep UUID -A1 -a $autofillProfilePath | grep -io "[-A-F0-9]\{36\}"
|
2020-06-09 18:35:39 +02:00
|
|
|
Copy-Item $autofillProfilePath -destination "$profilesDirPath/$autofill_uuid.mobileprovision"
|
2020-06-09 18:25:09 +02:00
|
|
|
|
|
|
|
$bitwarden_uuid = grep UUID -A1 -a $bitwardenProfilePath | grep -io "[-A-F0-9]\{36\}"
|
2020-06-09 18:35:39 +02:00
|
|
|
Copy-Item $bitwardenProfilePath -destination "$profilesDirPath/$bitwarden_uuid.mobileprovision"
|
2020-06-09 18:25:09 +02:00
|
|
|
|
|
|
|
$extension_uuid = grep UUID -A1 -a $extensionProfilePath | grep -io "[-A-F0-9]\{36\}"
|
2020-06-09 18:35:39 +02:00
|
|
|
Copy-Item $extensionProfilePath -destination "$profilesDirPath/$extension_uuid.mobileprovision"
|