-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
108 lines (60 loc) · 2.16 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: build-{build}
max_jobs: 1
image: Visual Studio 2022
clone_folder: C:\prj\deca
build_script:
- cmd: >-
SET
SET PATH=C:\Python38-x64;C:\Python38-x64\Scripts;%path%
echo GET SUBMODULES
cd C:\prj\deca
echo git submodule init
git config submodule.extern/HavokLib.url https://github.com/kk49/HavokLib.git
git submodule update --init --recursive
echo PATCH external libs
cd c:\prj\deca\extern\HavokLib\3rd_party\PreCore
git apply c:\prj\deca\patch\pre_core.patch
echo BUILD C++
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
mkdir C:\prj\deca\build
cd C:\prj\deca\build
cmake -DPython3_ROOT_DIR=C:\Python38-x64 -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ..
nmake
mkdir C:\prj\deca\root\bin
mkdir C:\prj\deca\root\lib
copy C:\prj\deca\build\cpp\bin2xml\bin2xml* C:\prj\deca\root\bin\
copy C:\prj\deca\build\cpp\process_image\process_image* C:\prj\deca\root\lib\
echo SETUP PYTHON
cd C:\prj\deca
c:\Python38-x64\python --version
c:\Python38-x64\python -m pip list
c:\Python38-x64\python -m venv venv
venv\Scripts\activate
pip list
pip install wheel
pip install -r python/requirements.txt
pip install pyinstaller
pip install requests
pip install -e python/deca/
pip install -e python/deca_gui/
echo PACKAGE
cd C:\prj\deca
pyinstaller deca_gui.spec --clean --noconfirm --distpath dist --workpath build_py
after_build:
cd dist\deca_gui
7z a ..\..\deca_gui-b%APPVEYOR_BUILD_NUMBER%.zip *
artifacts:
- path: deca_gui-b%APPVEYOR_BUILD_NUMBER%.zip
deploy:
artifact: deca_gui-b%APPVEYOR_BUILD_NUMBER%.zip
prerelease: true
description: 'Test Release'
provider: GitHub
auth_token:
secure: fJVvaKg5+L0c1JRWMkuTHDvGKEU5xqjlCCI0vdQzN6M7uiTn54ZN0eJQ6Dx830HX
on:
# branch: master # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only
on_success:
- ps: cd C:\prj\deca
- ps: python ./appveyor/on_success.py success CHANGELOG.md $env:BUILD_WEBHOOK_URL