Skip to content

Commit b878532

Browse files
committed
unify plugin versions to flow main version
1 parent 3abb2f0 commit b878532

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

appveyor.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ init:
88
{
99
$env:prereleaseTag = "{0}.{1}.{2}.{3}" -f $version.Major, $version.Minor, $version.Build, $version.Revision
1010
}
11+
12+
$jsonFiles = Get-ChildItem -Path ".\Plugins\*\plugin.json"
13+
foreach ($file in $jsonFiles) {
14+
$plugin_old_ver = Get-Content $file.FullName -Raw | ConvertFrom-Json
15+
(Get-Content $file) -replace '"Version"\s*:\s*".*?"', "`"Version`": `"$env:flowVersion`"" | Set-Content $file
16+
$plugin_new_ver = Get-Content $file.FullName -Raw | ConvertFrom-Json
17+
Write-Host "Updated" $plugin_old_ver.Name "version from" $plugin_old_ver.Version "to" $plugin_new_ver.Version
18+
}
1119
- sc config WSearch start= auto # Starts Windows Search service- Needed for running ExplorerTest
1220
- net start WSearch
1321

0 commit comments

Comments
 (0)