Detect VelopackApp.Run() in any method in main module

This commit is contained in:
Caelan Sayler
2024-03-27 10:23:01 +00:00
parent 97c9a05dbb
commit f1fd069ac7
10 changed files with 315 additions and 169 deletions

View File

@@ -7,6 +7,10 @@ try {
bool shouldExit = false;
bool shouldAutoUpdate = args.Any(a => a.Equals("--autoupdate", StringComparison.OrdinalIgnoreCase));
#if USE_ASYNC_MAIN
await Task.Delay(10).ConfigureAwait(false);
#endif
#if !NO_VELO_BUILDER
VelopackApp.Build()
.SetAutoApplyOnStartup(shouldAutoUpdate)