-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathappveyor.yml
56 lines (47 loc) · 2.18 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
platform:
- x64
image: Visual Studio 2017
environment:
matrix:
- PYTHON: "C:\\Python37-x64"
PATH: C:\Program Files (x86)\NSIS\;%PATH%
artifacts:
- path: ZeronetBrowser_%APPVEYOR_REPO_TAG_NAME%_setup.exe
build: off
init:
- cmd: copy C:\windows\system32\libeay32.dll C:\Qt\5.12\msvc2017_64\bin
- cmd: copy C:\windows\system32\ssleay32.dll C:\Qt\5.12\msvc2017_64\bin
- SET PATH=%PYTHON%;%PYTHON%\Scripts;C:\Qt\5.12\msvc2017_64\bin;%PATH%
- python -m pip install --upgrade pip
- python -m pip install pyinstaller msgpack gevent pypiwin32 PyQt5-sip PyQt5==5.12.3 PyQtWebEngine==5.12.1
install:
- ps: Start-FileDownload 'https://nsis.sourceforge.io/mediawiki/images/4/4a/AccessControl.zip'
- 7z x AccessControl.zip -oC:\tmp\AccessControl\
- ls C:\tmp
- cmd: copy C:\tmp\AccessControl\Plugins\AccessControl.dll "C:\Program Files (x86)\NSIS\plugins\x86-ansi"
- cmd: copy C:\tmp\AccessControl\Unicode\Plugins\AccessControl.dll "C:\Program Files (x86)\NSIS\plugins\x86-unicode"
- git submodule update --init --recursive
- cd ZeroNet
- python -m pip install -r requirements.txt
- cd ..
test_script:
- python test/first_run_test.py
- python scripts/bump_version.py
- pyinstaller browser.spec
after_test:
#- copy .\dist\ZeronetBrowser\PyQt5\Qt\resources\* .\dist\ZeronetBrowser\PyQt5\Qt\bin\
#- copy .\dist\ZeronetBrowser\PyQt5\Qt\translations\qtwebengine_locales\ .\dist\ZeronetBrowser\PyQt5\Qt\bin\
#- 7z a build-windows.zip dist/ZeronetBrowser/*
- ps: $size = [math]::floor((Get-ChildItem dist\ -Recurse | Measure-Object -Sum Length | Select-Object -ExpandProperty Sum)/1000)
- ps: if ($env:APPVEYOR_REPO_TAG_NAME) { $tag = $env:APPVEYOR_REPO_TAG_NAME } else { $tag="v0.0.0" }
- ps: $major, $minor, $build = $tag.substring(1).split(".")
- ps: makensis.exe /DTAG=$tag /DSIZE=$size /DMAJOR=$major /DMINOR=$minor /DBUILD=$build zeronetbrowser.nsi
deploy:
provider: GitHub
auth_token:
secure: 6eX2olaIxe4TsfETod+SYOyDsIKwmDivjirb7RPvl/Zd4zYW3dzGr4MieJ2BP89P # your encrypted token from GitHub
artifact: ZeronetBrowser_%APPVEYOR_REPO_TAG_NAME%_setup.exe
prerelease: true
force_update: true
on:
appveyor_repo_tag: true # deploy on tag push only