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:
parent
abc354f149
commit
ca93d966cf
@ -1,22 +1,33 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
export PYTHONWARNINGS=ignore::SyntaxWarning:DrissionPage
|
||||||
|
|
||||||
|
# Get script directory
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
echo "正在創建虛擬環境..."
|
echo "Creating virtual environment..."
|
||||||
python3 -m venv venv
|
|
||||||
|
|
||||||
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
|
source venv/bin/activate
|
||||||
|
|
||||||
echo "安裝依賴..."
|
# Install dependencies
|
||||||
|
echo "Installing dependencies..."
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
echo "開始構建..."
|
# Run build script
|
||||||
|
echo "Starting build process..."
|
||||||
python build.py
|
python build.py
|
||||||
|
|
||||||
echo "清理虛擬環境..."
|
# Keep window open
|
||||||
deactivate
|
echo "Build completed!"
|
||||||
rm -rf venv
|
echo "Press any key to exit..."
|
||||||
|
read -n 1
|
||||||
echo "完成!"
|
|
||||||
read -p "按任意鍵退出..."
|
|
Loading…
x
Reference in New Issue
Block a user