aboutsummaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-22 06:15:44 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-22 06:15:44 +0800
commite6bf6f5091caf3b4366894643671bc4586794cda (patch)
tree18f1ed3eb8820218ebfb9b2fad3da97c3bdaaa10 /manager
parent7091f88c9f0bbbad6959874993145cbd06c1886a (diff)
feat: add GUI manager and integrate into build pipeline
Diffstat (limited to 'manager')
-rw-r--r--manager/.gitignore3
-rw-r--r--manager/App.axaml10
-rw-r--r--manager/App.axaml.cs23
-rw-r--r--manager/MainWindow.axaml9
-rw-r--r--manager/MainWindow.axaml.cs11
-rw-r--r--manager/Program.cs21
-rw-r--r--manager/app.manifest18
-rw-r--r--manager/launcher/dmvop-gui.exebin0 -> 393728 bytes
-rw-r--r--manager/manager.csproj22
9 files changed, 117 insertions, 0 deletions
diff --git a/manager/.gitignore b/manager/.gitignore
new file mode 100644
index 0000000..df1d0c9
--- /dev/null
+++ b/manager/.gitignore
@@ -0,0 +1,3 @@
+bin
+obj
+publish
diff --git a/manager/App.axaml b/manager/App.axaml
new file mode 100644
index 0000000..d9eaaee
--- /dev/null
+++ b/manager/App.axaml
@@ -0,0 +1,10 @@
+<Application xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ x:Class="manager.App"
+ RequestedThemeVariant="Default">
+ <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
+
+ <Application.Styles>
+ <FluentTheme />
+ </Application.Styles>
+</Application> \ No newline at end of file
diff --git a/manager/App.axaml.cs b/manager/App.axaml.cs
new file mode 100644
index 0000000..814a7de
--- /dev/null
+++ b/manager/App.axaml.cs
@@ -0,0 +1,23 @@
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+
+namespace manager;
+
+public partial class App : Application
+{
+ public override void Initialize()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+
+ public override void OnFrameworkInitializationCompleted()
+ {
+ if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+ {
+ desktop.MainWindow = new MainWindow();
+ }
+
+ base.OnFrameworkInitializationCompleted();
+ }
+} \ No newline at end of file
diff --git a/manager/MainWindow.axaml b/manager/MainWindow.axaml
new file mode 100644
index 0000000..1aa61b8
--- /dev/null
+++ b/manager/MainWindow.axaml
@@ -0,0 +1,9 @@
+<Window xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ x:Class="manager.MainWindow"
+ Title="manager">
+ Welcome to Avalonia!
+</Window>
diff --git a/manager/MainWindow.axaml.cs b/manager/MainWindow.axaml.cs
new file mode 100644
index 0000000..82d8dc2
--- /dev/null
+++ b/manager/MainWindow.axaml.cs
@@ -0,0 +1,11 @@
+using Avalonia.Controls;
+
+namespace manager;
+
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+} \ No newline at end of file
diff --git a/manager/Program.cs b/manager/Program.cs
new file mode 100644
index 0000000..c2f6e74
--- /dev/null
+++ b/manager/Program.cs
@@ -0,0 +1,21 @@
+using Avalonia;
+using System;
+
+namespace manager;
+
+class Program
+{
+ // Initialization code. Don't use any Avalonia, third-party APIs or any
+ // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
+ // yet and stuff might break.
+ [STAThread]
+ public static void Main(string[] args) => BuildAvaloniaApp()
+ .StartWithClassicDesktopLifetime(args);
+
+ // Avalonia configuration, don't remove; also used by visual designer.
+ public static AppBuilder BuildAvaloniaApp()
+ => AppBuilder.Configure<App>()
+ .UsePlatformDetect()
+ .WithInterFont()
+ .LogToTrace();
+}
diff --git a/manager/app.manifest b/manager/app.manifest
new file mode 100644
index 0000000..b22c3d2
--- /dev/null
+++ b/manager/app.manifest
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
+ <!-- This manifest is used on Windows only.
+ Don't remove it as it might cause problems with window transparency and embedded controls.
+ For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
+ <assemblyIdentity version="1.0.0.0" name="manager.Desktop"/>
+
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <!-- A list of the Windows versions that this application has been tested on
+ and is designed to work with. Uncomment the appropriate elements
+ and Windows will automatically select the most compatible environment. -->
+
+ <!-- Windows 10 -->
+ <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
+ </application>
+ </compatibility>
+</assembly>
diff --git a/manager/launcher/dmvop-gui.exe b/manager/launcher/dmvop-gui.exe
new file mode 100644
index 0000000..56a7f39
--- /dev/null
+++ b/manager/launcher/dmvop-gui.exe
Binary files differ
diff --git a/manager/manager.csproj b/manager/manager.csproj
new file mode 100644
index 0000000..e21a361
--- /dev/null
+++ b/manager/manager.csproj
@@ -0,0 +1,22 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>WinExe</OutputType>
+ <TargetFramework>net9.0</TargetFramework>
+ <Nullable>enable</Nullable>
+ <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
+ <ApplicationManifest>app.manifest</ApplicationManifest>
+ <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Avalonia" Version="11.3.2" />
+ <PackageReference Include="Avalonia.Desktop" Version="11.3.2" />
+ <PackageReference Include="Avalonia.Themes.Fluent" Version="11.3.2" />
+ <PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.2" />
+ <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
+ <PackageReference Include="Avalonia.Diagnostics" Version="11.3.2">
+ <IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
+ <PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
+ </PackageReference>
+ </ItemGroup>
+</Project>