Files
OpenNest/OpenNest/MainApp.cs
T
ajandClaude Sonnet 5 18d63ffd61 feat(desktop): add Velopack auto-update support
Lets the desktop app self-update like CncSender, but only restarts after
the user confirms via a clickable status-bar prompt -- an open, unsaved
nest must never be discarded automatically. The feed URL is a blank-by-
default, per-machine setting (File > Options), since it's operator
infrastructure that doesn't belong in source control; Deploy-OpenNest.ps1
packages releases for whatever feed host/path the operator supplies.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 06:54:46 -04:00

24 lines
656 B
C#

using System;
using System.Windows.Forms;
using OpenNest.Forms;
using Velopack;
namespace OpenNest
{
internal static class MainApp
{
[STAThread]
private static void Main()
{
// Must run before anything else: on first launch after an update,
// Velopack re-invokes the new exe with hidden hook arguments and
// this call handles them and exits, so the UI below never runs.
VelopackApp.Build().Run();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}