Updated python version and wx version for building the app

This commit is contained in:
Manuel Cortez 2022-10-19 17:17:35 -05:00
parent 2613803031
commit 8aa55b0aa4
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -12,7 +12,7 @@ program64:
- windows10 - windows10
stage: build stage: build
variables: variables:
PYTHON: "C:\\python37\\python.exe" PYTHON: "C:\\python310\\python.exe"
before_script: before_script:
- Set-Variable -Name "time" -Value (date -Format "%H:%m") - Set-Variable -Name "time" -Value (date -Format "%H:%m")
- echo ${time} - echo ${time}
@ -27,19 +27,19 @@ program64:
- 'python write_version_data.py' - 'python write_version_data.py'
- 'python setup.py build' - 'python setup.py build'
- cd .. - cd ..
- 'mkdir artifacts' - 'mkdir build'
- cd scripts - cd scripts
- 'python prepare_zipversion.py' - 'python prepare_zipversion.py'
- cd .. - cd ..
- move src\music_dl.zip artifacts\music_dl_x64.zip - move src\music_dl.zip build\music_dl_x64.zip
- 'move src/dist artifacts/program64' - 'move src/dist build/program64'
- 'move src/installer.nsi artifacts' - 'move src/installer.nsi build'
only: only:
- schedules - schedules
- master - master
artifacts: artifacts:
paths: paths:
- artifacts - build
expire_in: 1 day expire_in: 1 day
program32: program32:
@ -49,7 +49,7 @@ program32:
- windows10 - windows10
stage: build stage: build
variables: variables:
PYTHON: "C:\\python37-32\\python.exe" PYTHON: "C:\\python310-32\\python.exe"
before_script: before_script:
- Set-Variable -Name "time" -Value (date -Format "%H:%m") - Set-Variable -Name "time" -Value (date -Format "%H:%m")
- echo ${time} - echo ${time}
@ -58,24 +58,25 @@ program32:
- '&$env:PYTHON -m pip install --upgrade pip' - '&$env:PYTHON -m pip install --upgrade pip'
- '&$env:PYTHON -m venv env' - '&$env:PYTHON -m venv env'
- 'env\Scripts\Activate.ps1' - 'env\Scripts\Activate.ps1'
- 'python -m pip install https://github.com/josephsl/wxpy32whl/raw/main/wxPython-4.2.0-cp310-cp310-win32.whl'
- 'python -m pip install --upgrade -r requirements.txt' - 'python -m pip install --upgrade -r requirements.txt'
script: script:
- cd src - cd src
- 'python write_version_data.py' - 'python write_version_data.py'
- 'python setup.py build' - 'python setup.py build'
- cd .. - cd ..
- 'mkdir artifacts' - 'mkdir build'
- cd scripts - cd scripts
- 'python prepare_zipversion.py' - 'python prepare_zipversion.py'
- cd .. - cd ..
- move src\music_dl.zip artifacts\music_dl_x86.zip - move src\music_dl.zip build\music_dl_x86.zip
- 'move src/dist artifacts/program32' - 'move src/dist build/program32'
only: only:
- schedules - schedules
- master - master
artifacts: artifacts:
paths: paths:
- artifacts - build
expire_in: 1 day expire_in: 1 day
generate_versions: generate_versions:
@ -90,10 +91,10 @@ generate_versions:
- echo ${time} - echo ${time}
- echo "started by ${GITLAB_USER_NAME}" - echo "started by ${GITLAB_USER_NAME}"
script: script:
- 'cd artifacts' - mkdir artifacts
- 'cd build'
- '&$env:NSIS installer.nsi' - '&$env:NSIS installer.nsi'
- 'Remove-Item -path program32 -recurse' - move *.exe *.zip ../artifacts
- 'Remove-Item -path program64 -recurse'
only: only:
- tags - tags
- master - master
@ -104,16 +105,16 @@ generate_versions:
expire_in: 1 day expire_in: 1 day
upload: upload:
stage: upload image:
name: amazon/aws-cli
entrypoint: [""]
tags: tags:
- linux - docker
image: python
interruptible: true
script:
- cd artifacts
- python ../scripts/generate_update_file.py
- python ../scripts/upload.py
only: only:
- master
- tags - tags
- schedules - master
interruptible: true
stage: upload
script:
- aws --version
- aws --endpoint-url https://s3.us-west-001.backblazeb2.com s3 cp artifacts s3://$S3_BUCKET/music_dl/ --recursive