[CI] Linux构建使用venv杜绝冲突
This commit is contained in:
@@ -53,9 +53,14 @@ jobs:
|
|||||||
|
|
||||||
cd Installer/ConsoleInstaller
|
cd Installer/ConsoleInstaller
|
||||||
|
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
|
||||||
|
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
|
||||||
|
|
||||||
# 安装依赖并构建
|
# 安装依赖并构建
|
||||||
pip3 install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip3 install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python3 -m PyInstaller -F -n fig-setup --distpath ./dist/linux main.py
|
python3 -m PyInstaller -F -n fig-setup --distpath ./dist/linux main.py
|
||||||
echo "Linux安装器构建完成"
|
echo "Linux安装器构建完成"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user