2017-12-25 20:11:01 +00:00
|
|
|
environment:
|
|
|
|
MINICONDA: "C:\\Miniconda"
|
2018-07-29 15:15:20 +00:00
|
|
|
PYTHON: "C:\\Python35"
|
|
|
|
PYTHON_VERSION: 3.5
|
2018-06-18 15:02:03 +00:00
|
|
|
PYTHON_ARCH: 32
|
2017-12-25 20:11:01 +00:00
|
|
|
|
|
|
|
platform: x86
|
|
|
|
|
|
|
|
configuration: Release
|
|
|
|
|
|
|
|
init:
|
2018-06-19 20:52:12 +00:00
|
|
|
- set PYTHONPATH=%PYTHON%
|
|
|
|
- set PYTHONHOME=%PYTHON%
|
|
|
|
- set PATH=%PYTHON%\Scripts;%PYTHON%;C:\Program Files (x86)\NSIS;%PATH%
|
2018-06-18 15:02:03 +00:00
|
|
|
- python --version
|
|
|
|
- python -m pip install -U pip setuptools wheel
|
|
|
|
- pip install -U pypiwin32==219
|
|
|
|
- pip install twisted
|
|
|
|
- pip install zope.interface
|
2018-07-29 15:15:20 +00:00
|
|
|
- type nul > %PYTHON%\lib\site-packages\zope\__init__.py
|
|
|
|
- curl -L https://bintray.com/alby128/Syncplay/download_file?file_path=py2exe-0.9.2.2-py33.py34.py35-none-any.whl -o py2exe-0.9.2.2-py33.py34.py35-none-any.whl
|
|
|
|
- pip install py2exe-0.9.2.2-py33.py34.py35-none-any.whl
|
|
|
|
- del py2exe-0.9.2.2-py33.py34.py35-none-any.whl
|
|
|
|
- pip install PySide2==5.11.1
|
2017-12-25 20:23:03 +00:00
|
|
|
- pip freeze
|
2017-12-25 20:11:01 +00:00
|
|
|
|
|
|
|
install:
|
2017-12-25 20:18:16 +00:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2017-12-25 20:23:03 +00:00
|
|
|
- for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a
|
|
|
|
- python buildPy2exe.py
|
2018-05-07 14:18:46 +00:00
|
|
|
- type nul > syncplay_v%ver%\syncplay.ini
|
|
|
|
- copy resources\win_lua_note.txt syncplay_v%ver%\"VLC LUA Script installation.txt"
|
2017-12-25 20:11:01 +00:00
|
|
|
|
|
|
|
# Not a project with an msbuild file, build done at install.
|
2018-02-20 18:43:21 +00:00
|
|
|
build: off
|
2017-12-25 20:11:01 +00:00
|
|
|
|
|
|
|
artifacts:
|
2017-12-25 20:23:03 +00:00
|
|
|
- path: 'syncplay_v$(ver)'
|
|
|
|
type: zip
|
2018-07-09 21:34:58 +00:00
|
|
|
name: Syncplay_$(ver)_Portable
|
2017-12-25 20:23:03 +00:00
|
|
|
|
|
|
|
- path: Syncplay-$(ver)-Setup.exe
|
2018-07-09 21:34:58 +00:00
|
|
|
name: Syncplay-$(ver)-Setup
|
2017-12-25 20:11:01 +00:00
|
|
|
|
|
|
|
# Push artefact to S3 bucket and list all
|
|
|
|
before_deploy:
|
2017-12-25 20:18:16 +00:00
|
|
|
- dir
|
|
|
|
#- python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)"
|
2017-12-25 20:11:01 +00:00
|
|
|
|
2017-12-25 20:36:45 +00:00
|
|
|
|
2017-12-25 20:11:01 +00:00
|
|
|
# Deploy build to BinTray
|
|
|
|
deploy:
|
|
|
|
provider: BinTray
|
|
|
|
username: etoh
|
|
|
|
api_key:
|
|
|
|
secure: TfwB161OlDOcAz5nnmjtNjDmJw2KyCz/uB1KzN4r5/9AL3uczWNuY+k6qVGaRvOP
|
|
|
|
repo: Syncplay
|
2017-12-25 20:32:45 +00:00
|
|
|
package: Syncplay
|
|
|
|
subject: syncplay
|
2017-12-25 20:36:45 +00:00
|
|
|
version: v$(ver)
|
2017-12-25 20:11:01 +00:00
|
|
|
publish: true
|
|
|
|
override: true
|