mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-16 05:21:37 -04:00
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>
24 lines
656 B
C#
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());
|
|
}
|
|
}
|
|
}
|