New attempt
This commit is contained in:
parent
5d1caeb3fe
commit
13c680f776
@ -4,11 +4,12 @@ variables:
|
|||||||
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
|
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
|
||||||
NSIS: "C:\\nsis\\makensis.exe"
|
NSIS: "C:\\nsis\\makensis.exe"
|
||||||
PYTHON2: "C:\\python27\\python.exe"
|
PYTHON2: "C:\\python27\\python.exe"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- make_installer
|
- pack
|
||||||
|
|
||||||
python3_version:
|
build_py3:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- windows10
|
- windows10
|
||||||
@ -18,28 +19,38 @@ python3_version:
|
|||||||
script:
|
script:
|
||||||
- cd src
|
- cd src
|
||||||
- '%PYINSTALLER% main.spec'
|
- '%PYINSTALLER% main.spec'
|
||||||
- cd ..
|
|
||||||
- cd scripts
|
|
||||||
- '%PYTHON3% prepare_zipversion.py'
|
|
||||||
- cd ..
|
|
||||||
- move src\music_dl.zip music_dl.zip
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- src\\dist
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- music_dl.zip
|
- src\\dist
|
||||||
name: music_dl
|
expire_in: 15 mins
|
||||||
expire_in: 1 day
|
|
||||||
|
|
||||||
build_setup:
|
zip_py3:
|
||||||
stage: make_installer
|
stage: pack
|
||||||
tags:
|
tags:
|
||||||
- windows10
|
- windows10
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
dependencies:
|
||||||
|
- build_py3
|
||||||
|
script:
|
||||||
|
- cd scripts
|
||||||
|
- '%PYTHON3% prepare_zipversion.py'
|
||||||
|
- cd ..
|
||||||
|
- move src\music_dl.zip music_dl.zip
|
||||||
|
paths:
|
||||||
|
- music_dl.zip
|
||||||
|
expire_in: 1 hour
|
||||||
|
|
||||||
|
build_setup:
|
||||||
|
stage: pack
|
||||||
|
tags:
|
||||||
|
- windows10
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
dependencies:
|
||||||
|
- build_py3
|
||||||
script:
|
script:
|
||||||
- cd src
|
- cd src
|
||||||
- '%NSIS% installer.nsi'
|
- '%NSIS% installer.nsi'
|
||||||
|
Loading…
Reference in New Issue
Block a user