bitwarden-android/.github/scripts/ios/export-ipa.ps1

19 lines
637 B
PowerShell
Raw Normal View History

2020-06-10 17:02:15 +03:00
param (
[Parameter(Mandatory=$true)]
[string] $method
)
$rootPath = $env:GITHUB_WORKSPACE;
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path
2020-06-10 17:53:57 +03:00
$exportOptionsPath = "$rootPath/.github/resources/export-options-$method.plist";
2020-06-10 19:24:52 +03:00
$archiveBasePath = "$homePath/Library/Developer/Xcode/Archives/*";
$archivePath = "$archiveBasePath/*.xcarchive";
$exportPath = "$archiveBasePath/ipa-export";
$ipaPath = "$exportPath/Bitwarden.ipa";
$destIpaPath = "$rootPath/Bitwarden.ipa";
2020-06-10 17:02:15 +03:00
2020-06-10 17:53:57 +03:00
xcodebuild -exportArchive -archivePath $archivePath -exportPath $exportPath -exportOptionsPlist $exportOptionsPath
2020-06-10 19:24:52 +03:00
Copy-Item $ipaPath $destIpaPath