bitwarden-android/.github/scripts/ios/build.ps1

19 lines
680 B
PowerShell
Raw Normal View History

2020-06-09 17:47:09 +03:00
param (
[Parameter(Mandatory=$true)]
[string] $configuration,
[string] $platform = "iPhone"
)
2020-06-10 00:32:53 +03:00
security default-keychain -s build.keychain
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
2020-06-10 00:43:40 +03:00
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain
2020-06-10 00:32:53 +03:00
2020-06-09 17:47:09 +03:00
$rootPath = $env:GITHUB_WORKSPACE;
2020-06-09 18:48:11 +03:00
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
2020-06-09 17:47:09 +03:00
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"