mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
18 lines
539 B
PowerShell
18 lines
539 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";
|
|
$archiveBasePath = "$homePath/Library/Developer/Xcode/Archives/*";
|
|
$archivePath = "$archiveBasePath/*.xcarchive";
|
|
$exportPath = "$rootPath/bitwardenios";
|
|
|
|
xcodebuild -exportArchive -archivePath $archivePath -exportPath $exportPath -exportOptionsPlist $exportOptionsPath
|
|
|
|
ls
|
|
cd $exportPath
|
|
ls
|