From 937fb1333139190fc1cd679eef9c5d62ba8a3b9b Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 27 Sep 2022 21:21:24 +0200 Subject: [PATCH] [ci,windows] variables are fucky under windows #2 --- .gitlab-ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d7749aa..871e7ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,6 @@ prepare: - pip install setuptools_scm>=6.2 script: - PYTHON_VERSION=$(python --version | cut -d " " -f2) - - echo "PYTHON_PATH=C:\\Python310\\python.exe" | tee -a build.env - echo "PYTHON_VERSION=${PYTHON_VERSION}" | tee -a build.env - VERSION=$(python -m setuptools_scm) - echo "VERSION=${VERSION}" | tee -a build.env @@ -54,13 +53,13 @@ package_windows: - windows-1809 before_script: - choco install python --version=$PYTHON_VERSION -y --no-progress - - $PYTHON_PATH --version - - $PYTHON_PATH -m pip install pipenv - - $PYTHON_PATH -m pipenv sync --dev + - C:\\Python310\\python.exe --version + - C:\\Python310\\python.exe -m pip install pipenv + - C:\\Python310\\python.exe -m pipenv sync --dev # for exe icon - - $PYTHON_PATH -m pipenv install pillow + - C:\\Python310\\python.exe -m pipenv install pillow script: - - $PYTHON_PATH -m pipenv run pyinstaller --onefile --windowed --name "${WINDOWS_AMD64_BINARY}" -i src/fime/icons/appointment-new.svg src/fime/main.py + - C:\\Python310\\python.exe -m pipenv run pyinstaller --onefile --windowed --name "${WINDOWS_AMD64_BINARY}" -i src/fime/icons/appointment-new.svg src/fime/main.py artifacts: paths: - dist/fime_windows_*