mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-11 14:37:51 +01:00
17 lines
523 B
PowerShell
17 lines
523 B
PowerShell
$rootPath = $env:GITHUB_WORKSPACE;
|
|
$buildNumber = 3000 + [int]$env:GITHUB_RUN_NUMBER;
|
|
|
|
Write-Output "########################################"
|
|
Write-Output "##### Setting Version Code $buildNumber"
|
|
Write-Output "########################################"
|
|
|
|
$androidManifest = $($rootPath + "/src/Android/Properties/AndroidManifest.xml");
|
|
|
|
$xml=New-Object XML;
|
|
$xml.Load($androidManifest);
|
|
|
|
$node=$xml.SelectNodes("/manifest");
|
|
$node.SetAttribute("android:versionCode", [string]$buildNumber);
|
|
|
|
$xml.Save($androidManifest);
|