system-toast/BUILD_README.md

67 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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通知功能