-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathappveyor.yml
47 lines (39 loc) · 1.17 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
version: 2020.1.0.{build}
branches:
only:
- master
skip_branch_with_pr: true
image: Visual Studio 2017
platform:
- x64
- x86
cache:
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\AppData\Local\Yarn\cache'
environment:
nodejs_version: "10.13.0"
init:
- git config --global core.autocrlf input
- ps: >-
IF ($env:APPVEYOR_REPO_BRANCH -eq "master") {
$env:APPVEYOR_CACHE_SKIP_RESTORE = "false"
$env:APPVEYOR_CACHE_SKIP_SAVE = "true"
}
ELSE {
$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"
$env:APPVEYOR_CACHE_SKIP_SAVE = "false"
}
install:
- ps: Install-Product node $env:nodejs_version $env:PLATFORM
- yarn install --frozen-lockfile --ignore-scripts
- yarn run get all --platform win32 --arch %PLATFORM:x86=x32% -c 5 -i ./internals -m ./modules --production
build_script:
- yarn run build:dir -w --c.directories.output=./dist/
- SET BUILD_VERSION=%APPVEYOR_BUILD_VERSION%
- >-
"C:\\Program Files (x86)\\Inno Setup 5\\ISCC.exe" /Odist
/FFIRST_LEGO_League_TMS_Setup_%BUILD_VERSION%_%PLATFORM% .\\windows\\setup\\main.iss
artifacts:
- path: .\dist\FIRST_LEGO_League_TMS_Setup_*.exe
name: Installer