1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-07 09:20:04 +01:00
bitwarden-mobile/.github/scripts/ios/build.ps1

21 lines
723 B
PowerShell
Raw Normal View History

2020-06-09 16:47:09 +02:00
param (
[Parameter(Mandatory=$true)]
[string] $configuration,
[string] $platform = "iPhone"
)
2020-06-10 02:16:03 +02:00
#
2020-06-09 23:32:53 +02:00
security default-keychain -s build.keychain
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
2020-06-10 02:14:40 +02:00
security set-keychain-settings -lut 1200
2020-06-09 23:43:40 +02:00
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain
2020-06-09 23:32:53 +02:00
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
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"