基于WebView2实现的Win11桌面框架,利用插件自定义
编辑 | blame | 历史 | 原始文档

Local Run: Moli.Desktop MVP

Prerequisites

  • Windows 11.
  • .NET SDK 10.
  • Microsoft Edge WebView2 Runtime.

Run From Source

dotnet restore Moli.Desktop.slnx
dotnet build Moli.Desktop.slnx
dotnet run --project src/Moli.Desktop/Moli.Desktop.csproj

On first launch, the app copies bundled samples from samples/plugins into %AppData%\DesktopEnhancer\plugins, enables them in plugins.json, and creates default widget layout entries in layout.json.

Sample Plugins

  • sample.wallpaper: local animated wallpaper.
  • sample.clock: local clock widget.
  • sample.system-info: local system information placeholder widget.

Runtime profile paths:

  • Config: %AppData%\DesktopEnhancer\config
  • Plugins: %AppData%\DesktopEnhancer\plugins
  • Logs: %LocalAppData%\DesktopEnhancer\logs
  • WebView2 data: %LocalAppData%\DesktopEnhancer\WebView2

Portable Zip

.\scripts\package-portable.ps1

The default output is artifacts\Moli.Desktop-win-x64.zip. Extract the zip and run Moli.Desktop.exe; the package includes the sample plugins under samples\plugins so first-launch seeding works without the source tree.

Startup

Use the tray menu item for startup control. It writes the current executable path to:

HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Moli.Desktop

The same setting is mirrored to %AppData%\DesktopEnhancer\config\appsettings.json.