1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-29 18:23:13 +01:00
Bitwarden-app-android-iphon.../.github/scripts/ios/build.ps1

30 lines
1.0 KiB
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`""
2020-06-10 15:24:27 +02:00
Write-Output "########################################"
Write-Output "##### Done"
Write-Output "########################################"
ls ~/Library/Developer/Xcode/Archives
2020-06-10 15:03:12 +02:00
} else
{
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration" "/t:`"Build`""
}