M6 Windows: composizione condivisa Febe.App per Server e Desktop; Febe per Windows (WPF) con l'interfaccia in WebView2, area di notifica, istanza unica, «Browser di Febe» su WebView2 con CDP filtrato (WebView2CdpSession) e ripieghi di S2 (composizione, Edge), guscio nativo, avvisi, spostamento verificato della cartella dei dati, icona del marchio; un solo Febe.exe, installatore NSIS e zip portabile; guida docs/windows.md e prove dal vivo S1–S3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-13 21:50:25 +00:00
1 parent dc4d1fc738
commit b443adfa8b
73 files changed
+7914 -699

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
using System.Windows;
using Febe.Desktop.Core;
namespace Febe.Desktop;
/// <summary>
/// Entry point of Febe.exe (spec §12). Reads the command line, finds the Data folder (<c>--dati</c>, the folder recorded
/// after a move, or <c>%LOCALAPPDATA%\Febe</c>), makes sure only one Febe runs on it — a second launch asks the first to
/// show its window and exits — and starts the application.
/// </summary>
internal static class Program
{
[STAThread]
public static int Main(string[] args)
{
// The menu of the notification-area icon is Windows Forms: with the visual styles of Windows.
System.Windows.Forms.Application.EnableVisualStyles();
if (!DesktopCommandLine.TryParse(args, out var options, out var problem))
{
MessageBox.Show($"{problem}\n\n{DesktopCommandLine.Usage}", "Febe", MessageBoxButton.OK, MessageBoxImage.Warning);
return 2;
}
var folders = DesktopFolders.Current();
var locations = new RegistryLocationStore();
var dataFolder = options.DataFolder ?? locations.Current ?? folders.DefaultDataFolder;
using var instance = SingleInstanceGuard.TryAcquire(dataFolder);
if (instance is null)
{
SingleInstanceGuard.SignalFirst(dataFolder, InstanceMessages.For(options));
return 0;
}
var application = new DesktopApplication(options, folders, locations, dataFolder, options.DataFolder is not null, instance);
return application.Run();
}
}