-
Notifications
You must be signed in to change notification settings - Fork 28
/
appveyor.yml
87 lines (71 loc) · 2.22 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: Build {build}
skip_non_tags: true
build:
verbosity: minimal
environment:
matrix:
- job_name: Windows build
appveyor_build_worker_image: Visual Studio 2013
platform: x86
PYTHON: "C:\\Python34"
- job_name: Linux build
appveyor_build_worker_image: Ubuntu1604
platform: x64
PYTHON: "venv3.5"
for:
- matrix:
only:
- job_name: Windows build
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "pip install pypiwin32==219"
- "pip install pefile==2019.4.18"
- "pip install pyinstaller==3.4"
- "pip install -r requirements.txt"
- "choco install -y InnoSetup"
before_build:
- powershell -command "-join (\"version = `'\", $(git describe), \"`'\") | Out-File -encoding utf8 PyEveLiveDPS\\version.py"
build_script:
- "pyinstaller setup-standalone.spec"
- "pyinstaller setup-for-installer.spec"
- set PATH=%PATH%;"C:\\Program Files (x86)\\Inno Setup 5"
- "iscc InstallerSetup.iss"
after_build:
- "mv dist\\PELD-standalone.exe PELD-standalone-%APPVEYOR_REPO_TAG_NAME%.exe"
- "mv dist\\PELD-installer.exe PELD-installer-%APPVEYOR_REPO_TAG_NAME%.exe"
artifacts:
- path: PELD-standalone*.exe
name: PELD-standalone
- path: PELD-installer*.exe
name: PELD-installer
- matrix:
only:
- job_name: Linux build
install:
- "export PATH=$HOME/$PYTHON:$HOME/$PYTHON/Scripts:$PATH"
- "pip install --upgrade urllib3==1.25.11"
- "pip install pyinstaller==3.5"
- "pip install -r requirements.txt"
before_build:
- echo "version = '$(git describe)'" > PyEveLiveDPS/version.py
build_script:
- "pyinstaller setup-linux.spec"
after_build:
- "mv dist/peld-linux peld-linux"
artifacts:
- path: PELD-standalone*.exe
name: PELD-standalone
- path: PELD-installer*.exe
name: PELD-installer
- path: peld-linux
name: PELD-linux
deploy:
- provider: GitHub
description: ""
artifact: /PELD.*/
draft: false
prerelease: false
on:
appveyor_repo_tag: true
auth_token:
secure: x0zs3NgPvK6J4L0zcZTwR+7wlQ1n8K9AiIykWSXE1CVV2aOiFyJsbQd9BCGiWHX4