| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
一款 macOS 菜单栏工具,一站式管理 Codex/GPT、Claude Code 的运行监控、硬件状态、天气预报、倒计时等。
oneMenu 只读取本机文件,不依赖远程账号:
swift run oneMenu要求 macOS 13+。
swift build --configuration release
mkdir -p oneMenu.app/Contents/MacOS oneMenu.app/Contents/Resources
cp .build/release/oneMenu oneMenu.app/Contents/MacOS/
cp Resources/Info.plist oneMenu.app/Contents/Resources/
cp Resources/AppIcon.icns oneMenu.app/Contents/Resources/
cp Sources/oneMenu/Resources/*.svg oneMenu.app/Contents/Resources/
open oneMenu.app默认使用 ad-hoc 签名,适合本机使用。
若需 Developer ID 签名:
Scripts/build-app.sh
SIGN_IDENTITY="Developer ID Application: Your Name (TEAMID)" Scripts/build-app.shScripts/build-dmg.sh生成文件:
公开分发建议使用 Developer ID 签名并公证:
SIGN_IDENTITY="Developer ID Application: Your Name (TEAMID)" \
NOTARY_PROFILE="your-notarytool-profile" \
Scripts/build-dmg.sh邮件默认关闭;创建 ~/.onemenu/email.json 后启用。当所有 AI 会话从活跃变为空闲时发送一封邮件。
mkdir -p ~/.onemenu && chmod 700 ~/.onemenu推荐将 SMTP 授权码存入 Keychain:
security add-generic-password \
-U \
-s onemenu-email \
-a sender@example.com \
-w 'your-smtp-app-password'~/.onemenu/email.json 示例:
{
"smtpURL": "smtps://smtp.example.com:465",
"username": "sender@example.com",
"passwordCommand": "security find-generic-password -s onemenu-email -a sender@example.com -w",
"from": "sender@example.com",
"to": ["you@example.com"],
"subject": "oneMenu: All AI tasks completed",
"requiresTLS": true
}环境变量:
各模块可独立配置是否在状态栏显示。
拟态玻璃风格,支持鼠标跟随滚动交互。
| 端点 | 地址 |
|---|---|
| GitHub Pages | ssdwgg.github.io/oneMenu |
| VPS 域名 A (HTTPS) | onemenu.ssdwgg.site |
| VPS 域名 B | onemenu.aiwgg.cn |
本地预览:
python3 -m http.server 4173 --directory docs
open http://127.0.0.1:4173/cp .env.deploy.example .env.deploy.local编辑 .env.deploy.local 填写服务器信息:
DEPLOY_SSH_HOST=your-server-ip
DEPLOY_SSH_USER=root
DEPLOY_SSH_PORT=22
DEPLOY_SSH_KEY=~/.ssh/your-key.pem
DEPLOY_REMOTE_DIR=/www/wwwroot/your-project/onemenu/同步到服务器:
set -a && source .env.deploy.local && set +a
ssh -i "$DEPLOY_SSH_KEY" -p "$DEPLOY_SSH_PORT" \
-o StrictHostKeyChecking=accept-new -o IdentitiesOnly=yes \
"$DEPLOY_SSH_USER@$DEPLOY_SSH_HOST" "mkdir -p '$DEPLOY_REMOTE_DIR'"
rsync -avz --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r \
-e "ssh -i '$DEPLOY_SSH_KEY' -p '$DEPLOY_SSH_PORT' -o StrictHostKeyChecking=accept-new -o IdentitiesOnly=yes" \
docs/ "$DEPLOY_SSH_USER@$DEPLOY_SSH_HOST:$DEPLOY_REMOTE_DIR"运行测试:
swift test校验 DMG:
Scripts/build-dmg.sh
cd dist
shasum -a 256 -c oneMenu-0.2.3.dmg.sha256.
├── Package.swift
├── Resources/
│ ├── AppIcon.icns
│ ├── AppIcon.png
│ ├── Info.plist
│ └── InstallGuide.html
├── Scripts/
│ ├── build-app.sh
│ ├── build-dmg.sh
│ └── generate-icon.py
├── Sources/
│ ├── oneMenu/
│ │ ├── AiStatusApp.swift
│ │ ├── AppAppearancePreferences.swift
│ │ ├── EmailConfigWindowController.swift
│ │ ├── HardwareStatusMonitor.swift
│ │ ├── SettingsWindowController.swift
│ │ ├── WeatherForecastService.swift
│ │ └── Resources/
│ └── CodexStatusCore/
├── Tests/
│ └── CodexStatusCoreTests/
└── docs/
├── assets/
├── downloads/
├── index.html
├── script.js
└── styles.css
| Back | FazBrowse Home | New Git URL |