Add tests for VelopackApp verifier

This commit is contained in:
Caelan Sayler
2024-01-25 15:17:37 +00:00
parent c51bf9b6bb
commit 29a5db626b
6 changed files with 129 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ try {
bool shouldExit = false;
bool shouldAutoUpdate = args.Any(a => a.Equals("--autoupdate", StringComparison.OrdinalIgnoreCase));
#if !NO_VELO_BUILDER
VelopackApp.Build()
.SetAutoApplyOnStartup(shouldAutoUpdate)
.WithFirstRun((v) => {
@@ -33,6 +34,7 @@ try {
if (shouldExit) {
return 0;
}
#endif
if (args.Length == 1 && args[0] == "version") {
var locator = VelopackLocator.GetDefault(new ConsoleLogger());

View File

@@ -6,6 +6,10 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup Condition=" $(NoVelopackApp) != '' ">
<DefineConstants>NO_VELO_BUILDER</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Velopack\Velopack.csproj" />
</ItemGroup>