forked from chiflix/splayerx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
59 lines (47 loc) · 1.55 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
# Commented sections below can be used to run tests on the CI server
# https://simulatedgreg.gitbooks.io/electron-vue/content/en/testing.html#on-the-subject-of-ci-testing
version: 0.1.{build}
# branches:
image: Visual Studio 2017
platform:
- x64
configuration: Release
cache:
#- node_modules
#- '%APPDATA%\npm-cache'
#- '%USERPROFILE%\.electron'
#- '%USERPROFILE%\AppData\Local\Yarn\cache'
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 9 x64
- git reset --hard HEAD
- yarn
- node --version
build_script:
#- yarn test
- yarn build
test: off
after_build:
# need appveyor will replace space in filename by ., but electron updater need '-', before deploy need to replace \s by -
- cmd: 'forfiles /P build /m *.blockmap /C "cmd /e:on /v:on /c set \"Phile=@file\" & if @ISDIR==FALSE ren @file !Phile: =-!"'
- cmd: 'forfiles /P build /m *.exe /C "cmd /e:on /v:on /c set \"Phile=@file\" & if @ISDIR==FALSE ren @file !Phile: =-!"'
artifacts:
- path: 'build\*.exe'
- path: 'build\*exe.blockmap'
- path: 'build\latest.yml'
environment:
GH_TOKEN:
secure: # todo your encrypted token from GitHub
deploy:
release: $(appveyor_repo_tag_name)
description: 'Release description'
provider: GitHub
auth_token:
secure: FDmfArc1K2R+cNHd7SUHpaT3HeZjI3re7YlVr0paJ4sxDkaAR7VwxTRnlTsaCGeJ # your encrypted token from GitHub
artifact:
draft: false
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only
# branch: master # release from master branch only