mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-07 09:20:04 +01:00
30 lines
1.0 KiB
PowerShell
30 lines
1.0 KiB
PowerShell
param (
|
|
[Parameter(Mandatory=$true)]
|
|
[string] $configuration,
|
|
[string] $platform = "iPhone",
|
|
[switch] $archive
|
|
)
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
|
|
|
|
if ($archive)
|
|
{
|
|
Write-Output "########################################"
|
|
Write-Output "##### Archive $configuration Configuration for $platform Platform"
|
|
Write-Output "########################################"
|
|
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration" `
|
|
"/p:ArchiveOnBuild=true" "/t:`"Build`""
|
|
|
|
Write-Output "########################################"
|
|
Write-Output "##### Done"
|
|
Write-Output "########################################"
|
|
ls ~/Library/Developer/Xcode/Archives
|
|
} else
|
|
{
|
|
Write-Output "########################################"
|
|
Write-Output "##### Build $configuration Configuration for $platform Platform"
|
|
Write-Output "########################################"
|
|
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration" "/t:`"Build`""
|
|
}
|