Skip to content

Commit

Permalink
fix: release x64 & update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun-ZhenXing committed Jan 7, 2023
1 parent 9a9073c commit b80ae8e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:

- name: Build
run: |
mkdir x64 -Force
mkdir x86 -Force
cmake -B ./build -G "Visual Studio 16 2019" -T host=x64 -A x64 .
cmake --build ./build --config Release --target ALL_BUILD -j 4 --
move ./build/build/Release/easy-taskbar-progress.dll x64
move ./build/Release/easy-taskbar-progress.exp x64
move ./build/Release/easy-taskbar-progress.lib x64
cmake --build ./build --config Release --target clean -j 4 --
Remove-Item .\build\ -Force -Recurse
cmake -B ./build -G "Visual Studio 16 2019" -T host=x86 -A win32 .
cmake --build ./build --config Release --target ALL_BUILD -j 4 --
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ cmake --build ./build --config Release --target ALL_BUILD -j 4 --
| 接口 | 功能 |
| --------------------------------- | -------------------------------- |
| `init()` | 开始进度条功能 |
| `set_mode(int mode)` | 设置模式 |
| `set_value(int value, int total)` | 设置值,最终表示为 `value/total` |
| `end()` | 结束进度条功能 |

**注意**`init()` 的时间节点决定了它内部保存的窗口句柄(`HWND`),只有当程序运行在包含窗口事件循环的时候,`init()` 才能正确初始化为当前激活窗口。

| 模式 || 含义 |
| -------------------- | ----- | ------------------------ |
| `TBPF_NOPROGRESS` | `0x0` | 没有加载条 |
| `TBPF_INDETERMINATE` | `0x1` | 正在加载中 |
| `TBPF_NORMAL` | `0x2` | 正常,显示加载进度 |
| `TBPF_ERROR` | `0x4` | 错误,显示为红色的加载条 |
| `TBPF_PAUSED` | `0x8` | 中断,显示为黄色的加载条 |

## 测试效果

Python >= 3.7
Expand Down

0 comments on commit b80ae8e

Please sign in to comment.