mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add tests for VelopackApp verifier
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user