fix: resolve win unicode error and install pillow for
This commit is contained in:
parent
84cc672823
commit
cb3a661611
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pyinstaller
|
pip install pyinstaller Pillow
|
||||||
|
|
||||||
- name: Build App Bundle
|
- name: Build App Bundle
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
26
README.md
26
README.md
@ -13,17 +13,27 @@
|
|||||||
您只需将代码托管在 GitHub 仓库中,GitHub 就会为您调用免费的 Windows、macOS 和 Linux 虚拟服务器,一键自动构建出所有安装包!
|
您只需将代码托管在 GitHub 仓库中,GitHub 就会为您调用免费的 Windows、macOS 和 Linux 虚拟服务器,一键自动构建出所有安装包!
|
||||||
|
|
||||||
### 操作步骤:
|
### 操作步骤:
|
||||||
1. **将代码推送到您的 GitHub 仓库**。
|
1. **首次配置并推送代码到 GitHub 仓库** (在本地项目终端运行):
|
||||||
2. 当需要发布新版本时,在本地打上版本 tag 并推送:
|
|
||||||
```bash
|
```bash
|
||||||
git tag v1.0.0
|
# 关联远程 GitHub 仓库,并将其命名为 github (实现双仓库并存)
|
||||||
git push origin v1.0.0
|
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`
|
- 💻 **Windows**:编译出 `CursorTokenLogin.exe`
|
||||||
- 🍏 **macOS**:编译出 `CursorTokenLogin-macOS.zip` (内含 `.app` 程序)
|
- 🍏 **macOS**:编译出 `CursorTokenLogin-macOS.zip` (内含 `.app` 应用程序)
|
||||||
- 🐧 **Linux**:编译出 Linux 二进制,并分别打包为 `cursortokenlogin.deb` 和 `cursortokenlogin.rpm`
|
- 🐧 **Linux**:编译出 Linux 运行文件,并自动打包为 `cursortokenlogin.deb` 和 `cursortokenlogin.rpm`
|
||||||
4. 构建完成后,GitHub 会自动创建一个 Release 版本,并将这 4 个编译好的安装包上传到 Release 中,您可以直接下载分发!
|
4. **下载成品**:构建完成后(耗时约 3~5 分钟),GitHub 会自动在您的仓库右侧 **Releases** 栏目中生成一个名为 `v1.0.0` 的发布页,进入即可直接下载编译好的 4 个包!
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ if not os.path.isfile(_LOGO_ICO):
|
|||||||
"找不到图标文件: %s\n请将 logo.ico 放在与 build.spec 同一目录后重新打包。" % _LOGO_ICO
|
"找不到图标文件: %s\n请将 logo.ico 放在与 build.spec 同一目录后重新打包。" % _LOGO_ICO
|
||||||
)
|
)
|
||||||
_LOGO_ICO_ABS = os.path.abspath(_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
|
block_cipher = None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user