mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
13 lines
355 B
PowerShell
13 lines
355 B
PowerShell
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|||
|
$buildNumber = 3000 + [int]$env:GITHUB_RUN_NUMBER;
|
|||
|
|
|||
|
$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);
|