Files
proxy_cursor_regv206/run.sh
huangzhenpc 89c5fd4cf9 first commit
2025-03-11 15:52:54 +08:00

51 lines
1.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 设置终端颜色
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
clear
echo -e "${BLUE}================================================${NC}"
echo -e "${BLUE} Cursor Pro Register 打包工具 ${NC}"
echo -e "${BLUE}================================================${NC}"
echo ""
# 检测Python是否已安装
if ! command -v python3 &> /dev/null; then
echo -e "${RED}[错误] 未检测到Python安装请先安装Python 3.8或更高版本${NC}"
echo -e "您可以从 https://www.python.org/downloads/ 下载安装"
echo ""
read -p "按回车键退出..."
exit 1
fi
echo -e "${GREEN}[信息] 检测到Python已安装${NC}"
echo ""
echo "请选择打包模式:"
echo "1. 基本打包模式(简单快速)"
echo "2. 高级打包模式(自定义配置)"
echo ""
read -p "请选择 [1,2]: " choice
if [[ $choice == "1" ]]; then
echo ""
echo -e "${GREEN}[信息] 已选择基本打包模式${NC}"
# 确保脚本有执行权限
chmod +x package.py
python3 package.py
else
echo ""
echo -e "${GREEN}[信息] 已选择高级打包模式${NC}"
# 确保脚本有执行权限
chmod +x package_spec.py
python3 package_spec.py
fi
echo ""
echo -e "${BLUE}================================================${NC}"
echo -e "${GREEN}打包过程已结束${NC}"
echo -e "${BLUE}================================================${NC}"
read -p "按回车键退出..."