Skip to content

Commit 94cec8a

Browse files
authored
move plugin version bump to build step
1 parent b878532 commit 94cec8a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

appveyor.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ 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-
}
1911
- sc config WSearch start= auto # Starts Windows Search service- Needed for running ExplorerTest
2012
- net start WSearch
2113

@@ -34,7 +26,16 @@ image: Visual Studio 2022
3426
platform: Any CPU
3527
configuration: Release
3628
before_build:
37-
- ps: nuget restore
29+
- ps: |
30+
nuget restore
31+
32+
$jsonFiles = Get-ChildItem -Path ".\Plugins\*\plugin.json"
33+
foreach ($file in $jsonFiles) {
34+
$plugin_old_ver = Get-Content $file.FullName -Raw | ConvertFrom-Json
35+
(Get-Content $file) -replace '"Version"\s*:\s*".*?"', "`"Version`": `"$env:flowVersion`"" | Set-Content $file
36+
$plugin_new_ver = Get-Content $file.FullName -Raw | ConvertFrom-Json
37+
Write-Host "Updated" $plugin_old_ver.Name "version from" $plugin_old_ver.Version "to" $plugin_new_ver.Version
38+
}
3839
build:
3940
project: Flow.Launcher.sln
4041
verbosity: minimal

0 commit comments

Comments
 (0)