-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
58 lines (48 loc) · 994 Bytes
/
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
version: 0.1.0.{build}
environment:
matrix:
- PYTHON: "C:\\Python36-x64"
branches:
only:
- master
image: Visual Studio 2017
platform:
- x64
cache:
- 'namsc\node_modules'
- 'namsd\build'
- 'namsd\venv'
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\AppData\Local\Yarn\cache'
init:
- git config --global core.autocrlf input
install:
- git reset --hard HEAD
- ps: Install-Product node 8 x64
- choco install yarn --ignore-dependencies
- choco install -y InnoSetup
- cd namsd
- "%PYTHON%\\python.exe -m venv venv"
- venv\Scripts\activate.bat
- pip install -r requirements.txt
- deactivate
- cd ..
- cd namsc
- yarn
- cd ..
- node --version
build_script:
- cd namsd
- venv\Scripts\activate.bat
- pyinstaller namsd.spec
- deactivate
- cd ..
- cd namsc
- yarn build
- cd ..
- set PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 5"
- ISCC nams.iss
test: off
artifacts:
- path: build\nams.exe