fix: resolve win unicode error and install pillow for

This commit is contained in:
李志强 2026-06-16 16:45:34 +08:00
parent 84cc672823
commit cb3a661611
3 changed files with 20 additions and 10 deletions

View File

@ -53,7 +53,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
pip install pyinstaller Pillow
- name: Build App Bundle
run: |

View File

@ -13,17 +13,27 @@
您只需将代码托管在 GitHub 仓库中GitHub 就会为您调用免费的 Windows、macOS 和 Linux 虚拟服务器,一键自动构建出所有安装包!
### 操作步骤:
1. **将代码推送到您的 GitHub 仓库**
2. 当需要发布新版本时,在本地打上版本 tag 并推送:
1. **首次配置并推送代码到 GitHub 仓库** (在本地项目终端运行)
```bash
git tag v1.0.0
git push origin v1.0.0
# 关联远程 GitHub 仓库,并将其命名为 github (实现双仓库并存)
git remote add github https://github.com/hero920103/cursorlogin.git
# 将本地的 master 分支推送到 GitHub
git push -u github master
```
3. GitHub Actions 会自动触发构建任务,并行启动三个环境:
2. **推送 Tag 触发 4 端自动打包** (后续每次需要打包发布时,直接运行下面两行)
```bash
# 1. 本地打上版本 tag
git tag vx.x.x
# 2. 将 tag 单独推送到 github 触发云端自动构建
git push github vx.x.x
```
3. GitHub Actions 收到 Tag 后会自动触发构建,云端会启动三个环境:
- 💻 **Windows**:编译出 `CursorTokenLogin.exe`
- 🍏 **macOS**:编译出 `CursorTokenLogin-macOS.zip` (内含 `.app` 程序)
- 🐧 **Linux**:编译出 Linux 二进制,并分别打包为 `cursortokenlogin.deb``cursortokenlogin.rpm`
4. 构建完成后GitHub 会自动创建一个 Release 版本,并将这 4 个编译好的安装包上传到 Release 中,您可以直接下载分发!
- 🍏 **macOS**:编译出 `CursorTokenLogin-macOS.zip` (内含 `.app` 应用程序)
- 🐧 **Linux**:编译出 Linux 运行文件,并自动打包为 `cursortokenlogin.deb``cursortokenlogin.rpm`
4. **下载成品**:构建完成后(耗时约 3~5 分钟GitHub 会自动在您的仓库右侧 **Releases** 栏目中生成一个名为 `v1.0.0` 的发布页,进入即可直接下载编译好的 4 个包
---

View File

@ -13,7 +13,7 @@ if not os.path.isfile(_LOGO_ICO):
": %s\n logo.ico build.spec " % _LOGO_ICO
)
_LOGO_ICO_ABS = os.path.abspath(_LOGO_ICO)
print("[build.spec] EXE :", _LOGO_ICO_ABS)
print("[build.spec] EXE icon path:", _LOGO_ICO_ABS)
block_cipher = None