mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
24 lines
607 B
PowerShell
24 lines
607 B
PowerShell
param (
|
|
[Parameter(Mandatory=$true)]
|
|
[string] $method
|
|
)
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
$resourcesPath = "$rootPath/.github/resources";
|
|
$exportOptionsPath = "$resourcesPath/export-options-$method.plist";
|
|
$homePath = Resolve-Path "~" | Select-Object -ExpandProperty Path
|
|
$archivesPath = "$homePath/Library/Developer/Xcode/Archives";
|
|
|
|
cd $archivesPath
|
|
cd *
|
|
ls
|
|
|
|
xcodebuild -exportArchive -archivePath *.xcarchive -exportPath com.8bit.bitwarden.ipa -exportOptionsPlist $exportOptionsPath
|
|
|
|
ls
|
|
|
|
$destPath = "$rootPath/com.8bit.bitwarden.ipa"
|
|
Copy-Item com.8bit.bitwarden.ipa $destPath
|
|
|
|
cd $rootPath
|
|
ls
|