2020-06-10 16:02:15 +02:00
|
|
|
|
param (
|
|
|
|
|
[Parameter(Mandatory=$true)]
|
|
|
|
|
[string] $method
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
|
|
|
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path
|
|
|
|
|
|
2020-06-10 16:53:57 +02:00
|
|
|
|
$exportOptionsPath = "$rootPath/.github/resources/export-options-$method.plist";
|
2020-06-10 19:30:08 +02:00
|
|
|
|
$archivePath = "$homePath/Library/Developer/Xcode/Archives/*/*.xcarchive";
|
|
|
|
|
$exportPath = "$rootPath/bitwarden-export";
|
2020-06-10 16:02:15 +02:00
|
|
|
|
|
2020-06-10 16:53:57 +02:00
|
|
|
|
xcodebuild -exportArchive -archivePath $archivePath -exportPath $exportPath -exportOptionsPlist $exportOptionsPath
|