build Linux executable in its own virtualenv

This commit is contained in:
Mike Fährmann
2022-02-16 03:56:48 +01:00
parent 6fdcfa941c
commit c8414c9d95
3 changed files with 11 additions and 2 deletions

View File

@@ -54,7 +54,14 @@ build-linux() {
cd "${ROOTDIR}"
echo Building Linux executable
make executable
VENV_PATH="/tmp/venv"
VENV_PYTHON="${VENV_PATH}/bin/python"
rm -r "${VENV_PATH}"
virtualenv "${VENV_PATH}"
$VENV_PYTHON -m pip install requests requests[socks] yt-dlp pyinstaller
$VENV_PYTHON ./scripts/pyinstaller.py
}
build-windows() {