2020-06-08 19:14:10 +03:00
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
|
|
|
$buildNumber = 3000 + [int]$env:GITHUB_RUN_NUMBER;
|
|
|
|
|
|
2020-06-08 23:10:17 +03:00
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
Write-Output "##### Setting Version Code $buildNumber"
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
|
2020-06-09 18:52:23 +03:00
|
|
|
|
$androidManifest = $($rootPath + "/src/Android/Properties/AndroidManifest.xml");
|
2020-06-08 19:14:10 +03:00
|
|
|
|
|
|
|
|
|
$xml=New-Object XML;
|
|
|
|
|
$xml.Load($androidManifest);
|
|
|
|
|
|
|
|
|
|
$node=$xml.SelectNodes("/manifest");
|
|
|
|
|
$node.SetAttribute("android:versionCode", [string]$buildNumber);
|
|
|
|
|
|
|
|
|
|
$xml.Save($androidManifest);
|