# System Toast - 跨平台系统通知应用 这是一个简单的跨平台系统通知应用,支持Windows、macOS和Linux系统。 ## 编译输出 应用已编译为以下平台和架构: ### Windows - `dist/windows/system-toast-windows-amd64.exe` - Windows 64位 (AMD64) - `dist/windows/system-toast-windows-arm64.exe` - Windows 64位 (ARM64) ### macOS - `dist/macos/system-toast-macos-amd64` - macOS Intel 64位 - `dist/macos/system-toast-macos-arm64` - macOS Apple Silicon (M1/M2) ### Linux - `dist/linux/system-toast-linux-amd64` - Linux 64位 (AMD64) - `dist/linux/system-toast-linux-arm64` - Linux 64位 (ARM64) ## 使用方法 ### Windows ```cmd system-toast-windows-amd64.exe -message "你的消息内容" -title "通知标题" ``` ### macOS ```bash ./system-toast-macos-amd64 -message "你的消息内容" -title "通知标题" ``` ### Linux ```bash ./system-toast-linux-amd64 -message "你的消息内容" -title "通知标题" ``` ## 参数说明 - `-message` (必需): 通知消息内容 - `-title` (可选): 通知标题,默认为"提醒" ## 示例 ```bash # Windows system-toast-windows-amd64.exe -message "任务已完成" -title "系统通知" # macOS ./system-toast-macos-amd64 -message "任务已完成" -title "系统通知" # Linux ./system-toast-linux-amd64 -message "任务已完成" -title "系统通知" ``` ## 重新编译 如需重新编译,可以运行以下脚本: - Windows: `build.bat` - Linux/macOS: `build.sh` ## 注意事项 - 在Linux系统上需要安装`libnotify-bin`包才能使用通知功能 - macOS系统会自动使用内置的通知系统 - Windows系统使用PowerShell的Toast通知功能