From c8414c9d9545401adc296e9171ca703f78942f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 16 Feb 2022 03:56:48 +0100 Subject: [PATCH] build Linux executable in its own virtualenv --- CHANGELOG.md | 2 ++ gallery_dl/version.py | 2 +- scripts/release.sh | 9 ++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c64d80db..68991908 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## Unreleased + ## 1.20.5 - 2022-02-14 ### Additions - [furaffinity] add `layout` option ([#2277](https://github.com/mikf/gallery-dl/issues/2277)) diff --git a/gallery_dl/version.py b/gallery_dl/version.py index 4bc9b576..80ce3b46 100644 --- a/gallery_dl/version.py +++ b/gallery_dl/version.py @@ -6,4 +6,4 @@ # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. -__version__ = "1.20.5" +__version__ = "1.20.6-dev" diff --git a/scripts/release.sh b/scripts/release.sh index a08cb5d4..afac268c 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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() {