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:
chengchongzhen
2024-12-28 16:31:30 +08:00
parent d48b1a9d6d
commit 61e93e08c9
5 changed files with 6 additions and 26 deletions

View File

@@ -19,7 +19,7 @@ def load_config():
if os.path.exists(config_path):
config.read(config_path, encoding="utf-8")
print(f"已加载配置文件: {config_path}")
print("已加载配置文件")
return {
"account": config["Account"]["email"],
"password": config["Account"]["password"],
@@ -445,7 +445,7 @@ if __name__ == "__main__":
# 添加等待用户输入后再退出
input("\n按回车键退出...")
except FileNotFoundError as e:
print(f"<EFBFBD><EFBFBD><EFBFBD>误: {e}")
print(f"误: {e}")
print("请确保 config.ini 文件存在并包含正确的配置信息")
input("\n按回车键退出...")
except Exception as e: