modify argument for post_build.ps1

This commit is contained in:
Hongtao Zhang 2024-03-24 13:52:05 -05:00
parent 3d6782ca30
commit f5762f6ad1
2 changed files with 6 additions and 4 deletions

View file

@ -1,9 +1,11 @@
param(
[string]$config = "Release",
[string]$solution = (Join-Path $PSScriptRoot ".." -Resolve),
[string]$channel = "prerelease"
[string]$channel = "win-x64-prerelease"
)
Write-Host "Config: $config"
Write-Host "Solution: $solution"
Write-Host "Channel: $channel"
function Build-Version
{

View file

@ -7,9 +7,9 @@ init:
if ($env:APPVEYOR_REPO_BRANCH -eq "dev")
{
$env:prereleaseTag = "{0}.{1}.{2}.{3}" -f $version.Major, $version.Minor, $version.Build, $version.Revision
$env:channel = "prerelease"
$env:channel = "win-x64-prerelease"
} else {
$env:channel = "stable"
$env:channel = "win-x64-stable"
}
- sc config WSearch start= auto # Starts Windows Search service- Needed for running ExplorerTest
- net start WSearch
@ -36,7 +36,7 @@ build:
test_script:
- dotnet test --no-build -c Release
after_test:
- ps: .\Scripts\post_build.ps1
- ps: .\Scripts\post_build.ps1 -channel $env:channel
artifacts:
- path: 'Output\Release\Flow.Launcher.Plugin.*.nupkg'