Skip to content

Commit 46b1731

Browse files
committed
Release v0.2.1
1 parent db0f3ef commit 46b1731

7 files changed

Lines changed: 46 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.2.1
4+
5+
- Refresh README to highlight the v0.2.0 stability, packaging, and engineering improvements.
6+
- Add day and night mode preview images for a clearer first impression.
7+
- Include documentation images in release packages.
8+
39
## 0.2.0
410

511
- Move generated config and cache to `%LOCALAPPDATA%\CodexUsageWidget`.

README.md

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33
一个用于 **Windows 桌面右下角悬浮显示** 的 Codex 用量小组件。
44
A lightweight **Windows desktop floating widget** for monitoring Codex usage.
55

6+
## 本次更新 / What's New
7+
8+
- **更清晰的日间/夜间界面**:根据背景亮度自动切换文字、状态和圆环底轨颜色,浅色背景也能读清楚。
9+
Better day/night readability with adaptive text and ring colors.
10+
- **后台刷新**:网络请求放到后台 Job,不会因为接口慢或网络波动卡住悬浮窗。
11+
Background refresh keeps the widget responsive.
12+
- **更安全的认证写回**:access token 过期时刷新 token,并在写认证文件前备份、加锁、原子写入。
13+
Safer auth refresh with backup, file lock, and atomic writes.
14+
- **配置/缓存迁移到 AppData**:运行时文件保存到 `%LOCALAPPDATA%\CodexUsageWidget`,项目目录保持干净。
15+
Runtime config/cache now live under AppData.
16+
- **更好的发布体验**:新增便携 zip 构建脚本,可选择把抓取脚本打包成 `tools\codex_usage_fetch.exe`
17+
Release packaging now supports a portable zip with an optional bundled exe.
18+
- **工程化补齐**:新增测试、检查脚本、版本文件、Changelog、License、GitHub Actions CI 和自动 release workflow。
19+
Added tests, checks, metadata, changelog, license, CI, and release workflow.
20+
21+
---
22+
23+
## 界面预览 / Preview
24+
25+
| 日间模式 / Day mode | 夜间模式 / Night mode |
26+
| --- | --- |
27+
| ![Codex Usage Widget day mode](docs/images/widget-day.png) | ![Codex Usage Widget night mode](docs/images/widget-night.png) |
28+
29+
截图为示例数据,仅用于展示界面效果。
30+
The previews use sample data and are for UI demonstration only.
31+
632
---
733

834
## 功能特点 / Features
@@ -50,16 +76,18 @@ A lightweight **Windows desktop floating widget** for monitoring Codex usage.
5076
## 使用方法 / How to Use
5177

5278
### 中文
53-
1. 确保你已在本机完成 Codex 登录(本项目会读取本机认证信息)。
54-
2. 双击 `启动Codex用量桌显.bat`
55-
3. 右下角出现悬浮窗后,可右键调整透明度与图层。
56-
4. 双击悬浮窗可关闭。
79+
1.[Releases](https://github.com/WeikangLin93/codex-usage-widget/releases) 下载 `CodexUsageWidget-*.zip` 并解压。
80+
2. 确保你已在本机完成 Codex 登录(本项目会读取本机认证信息)。
81+
3. 双击 `启动Codex用量桌显.bat`
82+
4. 右下角出现悬浮窗后,可右键调整透明度与图层。
83+
5. 双击悬浮窗可关闭。
5784

5885
### English
59-
1. Make sure Codex is already authenticated on your machine.
60-
2. Double-click `启动Codex用量桌显.bat`.
61-
3. Right-click the widget to change opacity and layer mode.
62-
4. Double-click the widget to close it.
86+
1. Download `CodexUsageWidget-*.zip` from [Releases](https://github.com/WeikangLin93/codex-usage-widget/releases) and unzip it.
87+
2. Make sure Codex is already authenticated on your machine.
88+
3. Double-click `启动Codex用量桌显.bat`.
89+
4. Right-click the widget to change opacity and layer mode.
90+
5. Double-click the widget to close it.
6391

6492
---
6593

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0
1+
0.2.1

docs/images/widget-day.png

30.2 KB
Loading

docs/images/widget-night.png

30 KB
Loading

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "codex-usage-widget"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "Windows desktop floating widget for monitoring Codex usage."
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -11,4 +11,3 @@ authors = [
1111

1212
[tool.pytest.ini_options]
1313
testpaths = ["tests"]
14-

scripts/build_release.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ $files = @(
3939
".gitignore",
4040
"CHANGELOG.md",
4141
"LICENSE",
42+
"pyproject.toml",
4243
"README.md",
4344
"README.txt",
4445
"VERSION",
@@ -60,6 +61,7 @@ Get-ChildItem -LiteralPath $repoRoot -Filter "*.bat" | ForEach-Object {
6061

6162
Copy-Item -LiteralPath (Join-Path $repoRoot "tests") -Destination (Join-Path $stageRoot "tests") -Recurse -Force
6263
Copy-Item -LiteralPath (Join-Path $repoRoot "scripts") -Destination (Join-Path $stageRoot "scripts") -Recurse -Force
64+
Copy-Item -LiteralPath (Join-Path $repoRoot "docs") -Destination (Join-Path $stageRoot "docs") -Recurse -Force
6365

6466
Compress-Archive -Path (Join-Path $stageRoot "*") -DestinationPath $zipPath -Force
6567

0 commit comments

Comments
 (0)