[ci,windows] variables are fucky under windows #2

This commit is contained in:
Fabian 2022-09-27 21:21:24 +02:00
parent 872593f286
commit 937fb13331

View File

@ -21,7 +21,6 @@ prepare:
- pip install setuptools_scm>=6.2 - pip install setuptools_scm>=6.2
script: script:
- PYTHON_VERSION=$(python --version | cut -d " " -f2) - 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 - echo "PYTHON_VERSION=${PYTHON_VERSION}" | tee -a build.env
- VERSION=$(python -m setuptools_scm) - VERSION=$(python -m setuptools_scm)
- echo "VERSION=${VERSION}" | tee -a build.env - echo "VERSION=${VERSION}" | tee -a build.env
@ -54,13 +53,13 @@ package_windows:
- windows-1809 - windows-1809
before_script: before_script:
- choco install python --version=$PYTHON_VERSION -y --no-progress - choco install python --version=$PYTHON_VERSION -y --no-progress
- $PYTHON_PATH --version - C:\\Python310\\python.exe --version
- $PYTHON_PATH -m pip install pipenv - C:\\Python310\\python.exe -m pip install pipenv
- $PYTHON_PATH -m pipenv sync --dev - C:\\Python310\\python.exe -m pipenv sync --dev
# for exe icon # for exe icon
- $PYTHON_PATH -m pipenv install pillow - C:\\Python310\\python.exe -m pipenv install pillow
script: 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: artifacts:
paths: paths:
- dist/fime_windows_* - dist/fime_windows_*