1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-16 02:17:10 +02:00
bitwarden-mobile/.github/scripts/ios/export-ipa.ps1
2020-06-10 10:53:57 -04:00

14 lines
487 B
PowerShell

param (
[Parameter(Mandatory=$true)]
[string] $method
)
$rootPath = $env:GITHUB_WORKSPACE;
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path
$exportOptionsPath = "$rootPath/.github/resources/export-options-$method.plist";
$archivePath = "$homePath/Library/Developer/Xcode/Archives/*/*.xcarchive";
$exportPath = "$rootPath/com.8bit.bitwarden.ipa"
xcodebuild -exportArchive -archivePath $archivePath -exportPath $exportPath -exportOptionsPlist $exportOptionsPath