-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
57 lines (43 loc) · 1.58 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
shallow_clone: true
# version format
version: 2.1.{build}
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf input
# Do not build on tags (GitHub only)
skip_tags: true
configuration: Release
# Assembly Info
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
environment:
sign_tool: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe'
timestamp_url: http://timestamp.verisign.com/scripts/timstamp.dll
pfx_file: 'C:\projects\Network-AutoSwitch\CodeSigningCertificate.pfx'
pfx_password:
secure: ugchYa6faIXJ4MAlCLsu0AT1uu5hh4YoV3qa3jJdBr4=
before_build:
- nuget restore
after_build:
- cmd: '"%sign_tool%" sign /f "%pfx_file%" /p %pfx_password% /t %timestamp_url% "C:\projects\network-autoswitch\Tulpep.NetworkAutoSwitch.NetworkService\bin\Release\NetworkAutoSwitch.exe"'
- cmd: '"%sign_tool%" sign /f "%pfx_file%" /p %pfx_password% /t %timestamp_url% "C:\projects\network-autoswitch\Tulpep.NetworkAutoSwitch.ProxyService\bin\Release\ProxyAutoSwitch.exe"'
artifacts:
- path: '**\bin\Release\NetworkAutoSwitch.exe'
name: NetworkAutoSwitch.exe
- path: '**\bin\Release\ProxyAutoSwitch.exe'
name: ProxyAutoSwitch.exe
deploy:
release: Network-AutoSwitch $(appveyor_build_version)
provider: GitHub
description: ''
auth_token:
secure: Q+20Xaui8ng5gVvoMIkb0g4F0oqMZFVOJo4SNRc+KVN91WkjLe5gTMkifCyDZTlE
artifact: /.*\.exe/
draft: false
prerelease: false
on:
branch: master