mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
18 lines
680 B
PowerShell
18 lines
680 B
PowerShell
param (
|
|
[Parameter(Mandatory=$true)]
|
|
[string] $configuration,
|
|
[string] $platform = "iPhone"
|
|
)
|
|
|
|
security default-keychain -s build.keychain
|
|
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
|
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
|
|
|
|
Write-Output "########################################"
|
|
Write-Output "##### Build $configuration Configuration for $platform Platform"
|
|
Write-Output "########################################"
|
|
|
|
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"
|