0
0
mirror of https://github.com/yeongpin/cursor-free-vip.git synced 2025-04-24 08:25:23 +00:00

build.mac build

This commit is contained in:
yeongpin 2025-01-14 15:56:33 +08:00
parent abc354f149
commit ca93d966cf

View File

@ -1,22 +1,33 @@
#!/bin/bash
export PYTHONWARNINGS=ignore::SyntaxWarning:DrissionPage
# Get script directory
cd "$(dirname "$0")"
echo "正在創建虛擬環境..."
python3 -m venv venv
echo "Creating virtual environment..."
echo "啟動虛擬環境..."
# Check if virtual environment exists
if [ ! -d "venv" ]; then
python3 -m venv venv
if [ $? -ne 0 ]; then
echo "Failed to create virtual environment!"
exit 1
fi
fi
# Activate virtual environment
source venv/bin/activate
echo "安裝依賴..."
# Install dependencies
echo "Installing dependencies..."
python -m pip install --upgrade pip
pip install -r requirements.txt
echo "開始構建..."
# Run build script
echo "Starting build process..."
python build.py
echo "清理虛擬環境..."
deactivate
rm -rf venv
echo "完成!"
read -p "按任意鍵退出..."
# Keep window open
echo "Build completed!"
echo "Press any key to exit..."
read -n 1