1
0
mirror of https://github.com/bitwarden/mobile synced 2025-01-01 11:38:11 +01:00
Bitwarden-app-android-iphon.../.github/scripts/ios/build.ps1

25 lines
858 B
PowerShell
Raw Normal View History

2020-06-09 16:47:09 +02:00
param (
[Parameter(Mandatory=$true)]
[string] $configuration,
2020-06-10 15:03:12 +02:00
[string] $platform = "iPhone",
[switch] $archive
2020-06-09 16:47:09 +02:00
)
$rootPath = $env:GITHUB_WORKSPACE;
2020-06-09 17:48:11 +02:00
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
2020-06-09 16:47:09 +02:00
2020-06-10 15:03:12 +02:00
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`""
} else
{
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration" "/t:`"Build`""
}