From 5ae7650e63bea799eab2f07d15ea5e8497ebaa99 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 30 Sep 2022 20:29:10 +0200 Subject: [PATCH] [ci] Finish setting up --- .gitlab-ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e4b57d..ba27d19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,8 +59,8 @@ update_windows_deps: # commit from linux, because setting up SSH in Windows is a fucking nightmare commit_windows_deps: - #needs: - # - update_windows_deps + needs: + - update_windows_deps image: alpine before_script: - apk add --update git openssh-client @@ -100,12 +100,14 @@ package_windows: rules: - if: $CI_COMMIT_TAG before_script: + - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - choco install python --version=$PYTHON_VERSION -y --no-progress - - C:\\Python310\\python.exe --version - - C:\\Python310\\python.exe -m pip install pipenv - - C:\\Python310\\python.exe -m pipenv sync --dev + - refreshenv + - python --version + - pip install pipenv + - pipenv sync --dev script: - - C:\\Python310\\python.exe -m pipenv run pyinstaller --onefile --windowed --name "${WINDOWS_AMD64_BINARY}" -i icon.ico src/fime/main.py + - pipenv run pyinstaller --onefile --windowed --name "${WINDOWS_AMD64_BINARY}" -i icon.ico src/fime/main.py artifacts: paths: - dist/fime_windows_*