Skip to content

Commit f04f594

Browse files
committed
Ship Quiet Signal v0.8.0 across desktop platforms
1 parent 02434bb commit f04f594

32 files changed

Lines changed: 812 additions & 331 deletions

‎.github/workflows/ci.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: ci-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
validate:
1317
runs-on: ubuntu-latest
@@ -20,3 +24,45 @@ jobs:
2024
- run: npm ci --ignore-scripts
2125
- run: npm run build
2226
- run: npm test
27+
28+
package:
29+
if: github.event_name == 'push'
30+
needs: validate
31+
timeout-minutes: 35
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
include:
36+
- runner: macos-14
37+
target: mac
38+
artifact: macos-arm64
39+
paths: |
40+
release/*.dmg
41+
release/*-mac-arm64.zip
42+
- runner: windows-latest
43+
target: win
44+
artifact: windows-x64
45+
paths: |
46+
release/*.exe
47+
release/*-win-x64.zip
48+
- runner: ubuntu-latest
49+
target: linux
50+
artifact: linux-x64
51+
paths: |
52+
release/*.AppImage
53+
release/*.deb
54+
runs-on: ${{ matrix.runner }}
55+
steps:
56+
- uses: actions/checkout@v4
57+
- uses: actions/setup-node@v4
58+
with:
59+
node-version: 24
60+
cache: npm
61+
- run: npm ci
62+
- run: npm run build:${{ matrix.target }}
63+
- uses: actions/upload-artifact@v4
64+
with:
65+
name: ${{ matrix.artifact }}
66+
path: ${{ matrix.paths }}
67+
if-no-files-found: error
68+
retention-days: 7

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules/
22
out/
33
release/
44
dist/
5+
assets/concepts/
56
.DS_Store
67
*.log
78
*.tsbuildinfo

‎README.md‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sub2API 用量浮窗
22

3-
一个只读的 macOS 桌面用量看板。数据全部来自现有 Sub2API 管理 API,不直连 PostgreSQL/Redis,也不需要修改服务器部署。
3+
一个只读的 macOS、Windows 和 Linux 桌面用量看板。数据全部来自现有 Sub2API 管理 API,不直连 PostgreSQL/Redis,也不需要修改服务器部署。
44

55
[下载最新版本](https://github.com/chopperH0824/sub2api-usage-float/releases/latest) · [问题反馈](https://github.com/chopperH0824/sub2api-usage-float/issues)
66

@@ -15,7 +15,7 @@
1515
- 异常、封禁、验证、重新授权、暂停、限流、过载和临时不可调度状态
1616
- 平台/状态筛选、账号搜索、告警优先排序
1717
- 每个账号可打开独立透明浮窗,并单独保存位置、尺寸、透明度和置顶状态
18-
- 主看板置顶、紧凑模式、透明度、暗色模式、开机启动和系统托盘
18+
- 主看板置顶、紧凑模式、透明度、暗色模式、系统托盘,以及 macOS/Windows 登录时启动
1919

2020
支持 OpenAI/Codex、Anthropic/Claude、Gemini、Antigravity、Grok、Kimi、智谱、DeepSeek 和 Ollama Cloud 的现有字段。新版服务器优先使用批量接口;旧版没有批量接口时自动降级为受限并发的逐账号读取。
2121

@@ -47,7 +47,7 @@
4747

4848
## 本地开发
4949

50-
需要 Node.js 22.12 或更高版本。当前安装包支持 Apple Silicon Mac 和 macOS 13 及以上系统。
50+
需要 Node.js 22.12 或更高版本。正式产物支持 Apple Silicon Mac(macOS 13+)、Windows x64 和 Linux x64。
5151

5252
```bash
5353
npm install
@@ -62,13 +62,15 @@ npm run dev:web
6262

6363
预览地址为 `http://127.0.0.1:5173/`;连接页可访问 `http://127.0.0.1:5173/?screen=connect`,开屏动画可访问 `http://127.0.0.1:5173/?screen=boot`,账号浮窗可访问 `http://127.0.0.1:5173/?view=account-float&accountId=1`。
6464

65-
## 构建 macOS 安装包
65+
## 构建桌面安装包
6666

6767
```bash
68-
npm run build:mac
68+
npm run build:mac # macOS arm64: DMG + ZIP
69+
npm run build:win # Windows x64: NSIS EXE + ZIP
70+
npm run build:linux # Linux x64: AppImage + DEB
6971
```
7072

71-
构建产物位于 `release/`,包含 Apple Silicon 的 DMG 和 ZIP。当前本地构建未做 Apple Developer 签名;首次运行时可在 Finder 中右键应用并选择“打开”。
73+
构建产物位于 `release/`。macOS 与 Windows 当前未配置开发者签名,首次打开时可能出现系统安全提示;Linux AppImage 首次运行前需要赋予可执行权限。正式 Release 的三个平台产物由对应的 GitHub Actions 原生运行器分别构建。
7274

7375
## 验证
7476

@@ -93,7 +95,8 @@ npm run build
9395
## 本地安全
9496

9597
- 密码只用于当前登录请求,从不落盘。
96-
- Admin API Key 或刷新令牌通过 Electron `safeStorage` 加密,macOS 下由系统钥匙串保护。
98+
- Admin API Key 或刷新令牌通过 Electron `safeStorage` 加密,并交由 macOS 钥匙串、Windows DPAPI 或 Linux Secret Service/KWallet 保护。
99+
- Linux 缺少安全密钥环并退化为 `basic_text` 时,应用不会保存任何凭据。
97100
- Key/令牌只存在于 Electron 主进程,不暴露给 Vue 渲染页面。
98101
- 本地配置保存在 Electron 的应用数据目录,文件权限为 `0600`。
99102
- 若系统安全存储不可用,凭据只保留在当前运行会话。

‎assets/app-icon.png‎

-583 KB
Loading

‎assets/tray-icon.png‎

-4.02 KB
Loading

‎build/icon.icns‎

-996 KB
Binary file not shown.

‎build/icon.ico‎

72.2 KB
Binary file not shown.

‎build/icons/1024x1024.png‎

648 KB
Loading

‎build/icons/128x128.png‎

13.3 KB
Loading

‎build/icons/16x16.png‎

610 Bytes
Loading

0 commit comments

Comments
 (0)