mirror of
https://github.com/bitwarden/android.git
synced 2024-12-27 03:18:27 +03:00
26 lines
793 B
PowerShell
26 lines
793 B
PowerShell
$rootPath = $env:GITHUB_WORKSPACE;
|
|
$buildNumber = 100 + [int]$env:GITHUB_RUN_NUMBER;
|
|
|
|
$bitwardenInfo = $($rootPath + "/src/iOS/Info.plist");
|
|
$extensionInfo = $($rootPath + "/src/iOS.Extension/Info.plist");
|
|
$autofillInfo = $($rootPath + "/src/iOS.Autofill/Info.plist");
|
|
|
|
Write-Output "########################################"
|
|
Write-Output "##### Setting CFBundleVersion $buildNumber"
|
|
Write-Output "########################################"
|
|
|
|
function Update-Version($file) {
|
|
$xml=New-Object XML;
|
|
$xml.Load($file);
|
|
|
|
Select-Xml -xml $xml -XPath "//dict/key[. = 'CFBundleVersion']/following-sibling::string[1]" |
|
|
%{
|
|
$_.Node.InnerXml = $buildNumber
|
|
}
|
|
|
|
$xml.Save($file);
|
|
}
|
|
|
|
Update-Version $bitwardenInfo
|
|
Update-Version $extensionInfo
|
|
Update-Version $autofillInfo
|