This commit is contained in:
parent
d8e951c5e1
commit
e044a4e7db
27
.drone.yml
27
.drone.yml
@ -10,14 +10,29 @@ steps:
|
|||||||
image: git.argideli.com/quertex/docker-win-pyinstaller:latest
|
image: git.argideli.com/quertex/docker-win-pyinstaller:latest
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
# add dependancies
|
|
||||||
- apk add --no-cache gnutls
|
|
||||||
- wine c:/python/python.exe -m pip config --user set global.progress_bar off
|
|
||||||
- wine c:/python/python.exe -m pip install -r z:/drone/src/requirements.txt
|
|
||||||
# prepare output directory
|
# prepare output directory
|
||||||
- mkdir -p /drone/src/out/
|
- mkdir -p /drone/src/out/
|
||||||
# build
|
- mkdir -p /drone/src/dist/
|
||||||
|
# add dependancies
|
||||||
|
- apk add --no-cache gnutls
|
||||||
|
# linux build
|
||||||
|
- cd /drone/src/
|
||||||
|
- python -m venv venv
|
||||||
|
- source venv/bin/activate
|
||||||
|
- pip config --user set global.progress_bar off
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pyinstaller --onefile --name matomo-csv-util --distpath /drone/src/out/ /drone/src/main.py
|
||||||
|
- deactivate
|
||||||
|
- cp -v out/matomo-csv-util dist/
|
||||||
|
# clean up
|
||||||
|
- rm -rf venv
|
||||||
|
- rm -rf /drone/src/out
|
||||||
|
- mkdir -p /drone/src/out/
|
||||||
|
# windows build
|
||||||
|
- wine c:/python/python.exe -m pip config --user set global.progress_bar off
|
||||||
|
- wine c:/python/python.exe -m pip install -r z:/drone/src/requirements.txt
|
||||||
- wine c:/python/Scripts/pyinstaller.exe --onefile --name matomo-csv-util --distpath z:/drone/src/out z:/drone/src/main.py
|
- wine c:/python/Scripts/pyinstaller.exe --onefile --name matomo-csv-util --distpath z:/drone/src/out z:/drone/src/main.py
|
||||||
|
- cp -v out/matomo-csv-util.exe dist/
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
@ -25,7 +40,7 @@ steps:
|
|||||||
base_url: https://git.argideli.com
|
base_url: https://git.argideli.com
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
files: /drone/src/out/matomo-csv-util.exe
|
files: /drone/src/dist/*
|
||||||
checksum:
|
checksum:
|
||||||
- sha512
|
- sha512
|
||||||
when:
|
when:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user