Refactor cursor_pro_keep_alive.py and update packaging
- Simplified configuration loading message in cursor_pro_keep_alive.py. - Improved error message for missing config file. - Renamed executable from 'cursor_pro_keep_alive' to 'cursorPro' in CursorKeepAlive.spec. - Removed obsolete config file from dist directory. - Added new executable 'cursorPro.exe' to dist folder. - Updated README.md to reflect changes in file structure and installation instructions.
This commit is contained in:
@@ -26,7 +26,7 @@ exe = EXE(
|
|||||||
a.binaries,
|
a.binaries,
|
||||||
a.datas,
|
a.datas,
|
||||||
[],
|
[],
|
||||||
name='cursor_pro_keep_alive',
|
name='cursorPro',
|
||||||
debug=False,
|
debug=False,
|
||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ def load_config():
|
|||||||
|
|
||||||
if os.path.exists(config_path):
|
if os.path.exists(config_path):
|
||||||
config.read(config_path, encoding="utf-8")
|
config.read(config_path, encoding="utf-8")
|
||||||
print(f"已加载配置文件: {config_path}")
|
print("已加载配置文件")
|
||||||
return {
|
return {
|
||||||
"account": config["Account"]["email"],
|
"account": config["Account"]["email"],
|
||||||
"password": config["Account"]["password"],
|
"password": config["Account"]["password"],
|
||||||
@@ -445,7 +445,7 @@ if __name__ == "__main__":
|
|||||||
# 添加等待用户输入后再退出
|
# 添加等待用户输入后再退出
|
||||||
input("\n按回车键退出...")
|
input("\n按回车键退出...")
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
print(f"<EFBFBD><EFBFBD><EFBFBD>误: {e}")
|
print(f"错误: {e}")
|
||||||
print("请确保 config.ini 文件存在并包含正确的配置信息")
|
print("请确保 config.ini 文件存在并包含正确的配置信息")
|
||||||
input("\n按回车键退出...")
|
input("\n按回车键退出...")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
5
dist/config - 副本.ini
vendored
5
dist/config - 副本.ini
vendored
@@ -1,5 +0,0 @@
|
|||||||
[Account]
|
|
||||||
email = xxxx
|
|
||||||
password = xxx
|
|
||||||
first_name = xxxx
|
|
||||||
last_name = xxxx
|
|
||||||
BIN
dist/cursorPro.exe
vendored
Normal file
BIN
dist/cursorPro.exe
vendored
Normal file
Binary file not shown.
21
dist/readme.md
vendored
21
dist/readme.md
vendored
@@ -5,22 +5,16 @@
|
|||||||
## 1. 软件介绍
|
## 1. 软件介绍
|
||||||
Cursor Pro Keep Alive 是一个自动化工具,用于管理 Cursor 账号的注册和更新。该工具可以自动执行账号删除和重新注册流程,以保持账号活跃。
|
Cursor Pro Keep Alive 是一个自动化工具,用于管理 Cursor 账号的注册和更新。该工具可以自动执行账号删除和重新注册流程,以保持账号活跃。
|
||||||
|
|
||||||
|
> 在执行之前,一定要确保账号是通过 https://tempmail.plus/zh 获取的临时邮箱注册了 cursor账号。在注册账号时要设置好名字和密码。
|
||||||
|
|
||||||
## 2. 安装和准备
|
## 2. 安装和准备
|
||||||
|
|
||||||
### 2.1 必要文件
|
### 2.1 必要文件
|
||||||
确保您有以下文件:
|
确保您有以下文件:
|
||||||
- `cursor_pro_keep_alive.exe` - 主程序
|
- `cursor_pro_keep_alive.exe` - 主程序
|
||||||
- `config.ini` - 配置文件
|
- `config.ini` - 配置文件
|
||||||
- `turnstilePatch` - 插件文件夹
|
|
||||||
|
|
||||||
### 2.2 文件结构
|
|
||||||
```
|
|
||||||
your_folder/
|
|
||||||
├── cursor_pro_keep_alive.exe
|
|
||||||
├── config.ini
|
|
||||||
└── turnstilePatch/
|
|
||||||
└── (插件文件)
|
|
||||||
```
|
|
||||||
|
|
||||||
## 3. 配置文件设置
|
## 3. 配置文件设置
|
||||||
|
|
||||||
@@ -59,15 +53,6 @@ last_name = your_lastname # 姓氏
|
|||||||
错误提示:`配置文件不存在`
|
错误提示:`配置文件不存在`
|
||||||
- 解决方法:确保 `config.ini` 文件在程序同目录下
|
- 解决方法:确保 `config.ini` 文件在程序同目录下
|
||||||
|
|
||||||
### 5.2 插件加载失败
|
|
||||||
错误提示:`插件不存在`
|
|
||||||
- 解决方法:确保 `turnstilePatch` 文件夹在程序同目录下
|
|
||||||
- 注意:即使插件加载失败,程序仍会继续执行
|
|
||||||
|
|
||||||
### 5.3 账号注册失败
|
|
||||||
- 检查邮箱格式是否正确(必须是 mailto.plus)
|
|
||||||
- 确保密码符合要求
|
|
||||||
- 检查网络连接是否正常
|
|
||||||
|
|
||||||
## 6. 注意事项
|
## 6. 注意事项
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user