install only if cache not exists

This commit is contained in:
Hongtao Zhang 2024-03-26 17:45:46 -05:00
parent 2eb6474853
commit 4337c607ee

View file

@ -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
}