From 4337c607ee03e1e6811b6dc05aab5b11b37e6f7a Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Tue, 26 Mar 2024 17:45:46 -0500 Subject: [PATCH] install only if cache not exists --- Scripts/post_build.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index a3e202ce5..cdc1b398d 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -111,6 +111,13 @@ function Pack-Velopack-Installer($path, $version, $output) $repoUrl = "https://github.com/Flow-Launcher/Flow.Launcher" } + Set-Alias vpk "~/.dotnet/tools/vpk.exe" + + if (!(Get-Command vpk -ErrorAction SilentlyContinue)) + { + dotnet tool install --global vpk + } + vpk pack --packVersion $version --packDir $input --packId FlowLauncher --mainExe Flow.Launcher.exe --channel $channel }