# ShutdownAssistant **Repository Path**: devop/shutdown-assistant ## Basic Information - **Project Name**: ShutdownAssistant - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-15 - **Last Updated**: 2026-04-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 定时电源助手 Windows 定时关机/重启/开机工具,有两个版本: | 项目 | 框架 | 状态 | |------|------|------| | ShutdownAssistant.App | WPF (.NET 8) | 已停止维护 | | ShutdownAssistant.Avalonia | Avalonia (.NET 8) | 当前版本 | ## 功能 (Avalonia 版本) - 定时任务管理(关机、重启、开机) - 多种执行周期:一次性、每天、每周、每月 - 系统托盘运行 - 开机自启动 - 执行日志 ## 技术栈 - .NET 8 - Avalonia UI 11 - CommunityToolkit.Mvvm ## 编译 ```bash # 开发模式 dotnet build ShutdownAssistant.Avalonia # 发布 - 需要 .NET Runtime 的常规版 dotnet publish ShutdownAssistant.Avalonia -c Release -r win-x64 --self-contained false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o bin/runtime-regular # 发布 - 需要 .NET Runtime 的轻量版 dotnet publish ShutdownAssistant.Avalonia -c Release -r win-x64 --self-contained false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o bin/runtime-min # 发布 - 自包含常规版 dotnet publish ShutdownAssistant.Avalonia -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o bin/standalone-regular # 发布 - 自包含最小版 dotnet publish ShutdownAssistant.Avalonia -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -o bin/standalone-min ``` ## 发布版本 | 目录 | 类型 | 需要 .NET 8 Runtime | 说明 | |------|------|----------------------|------| | `bin/runtime-regular/` | 单文件常规版 | 是 | framework-dependent,常规发布 | | `bin/runtime-min/` | 单文件轻量版 | 是 | framework-dependent,去掉调试符号 | | `bin/standalone-regular/` | 单文件常规版 | 否 | self-contained,稳定优先 | | `bin/standalone-min/` | 单文件最小版 | 否 | self-contained + trim,体积更小 | 当前可分发的核心文件就是各目录下的: - `ShutdownAssistant.Avalonia.exe` ## 配置 配置文件位置:`%LOCALAPPDATA%\ShutdownAssistant\tasks.json`