bitwarden-android/src/Android/increment-version.ps1

8 lines
309 B
PowerShell
Raw Normal View History

2017-02-05 05:35:02 +03:00
$rootPath = $args[0];
$newVersionCode = $args[1];
2017-02-05 05:19:54 +03:00
$xml=New-Object XML;
$xml.Load($rootPath + "src\Android\Properties\AndroidManifest.xml");
$node=$xml.SelectNodes("/manifest");
$node.SetAttribute("android:versionCode", $newVersionCode);
$xml.Save($rootPath + "src\Android\Properties\AndroidManifest.xml");