0
0
mirror of https://github.com/yeongpin/cursor-free-vip.git synced 2025-04-24 08:25:23 +00:00
cursor-free-vip/build.mac.command
2025-01-14 15:56:33 +08:00

33 lines
685 B
Bash

#!/bin/bash
export PYTHONWARNINGS=ignore::SyntaxWarning:DrissionPage
# Get script directory
cd "$(dirname "$0")"
echo "Creating virtual environment..."
# 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
# Install dependencies
echo "Installing dependencies..."
python -m pip install --upgrade pip
pip install -r requirements.txt
# Run build script
echo "Starting build process..."
python build.py
# Keep window open
echo "Build completed!"
echo "Press any key to exit..."
read -n 1