forked from TV-Rename/tvrename
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (46 loc) · 1.57 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
image: Visual Studio 2019
configuration: Release
platform: Any CPU
skip_non_tags: true
skip_branch_with_pr: true
clone_depth: 1
branches:
only:
- master
cache:
- packages -> **\packages.config
init:
- ps: >-
$tag = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
Update-AppveyorBuild -Version "$($tag)"
$version = $tag -split '-'
$friendly = $version[0].TrimEnd(".0")
If ($version[1]) {
$end = (Get-Culture).TextInfo.ToTitleCase($version[1].Replace("rc", "RC"))
$friendly += " " + $end -replace "([a-z]+)(\d+)",'$1 $2'
}
$env:APPVEYOR_BUILD_VERSION_FRIENDLY = $friendly
assembly_info:
patch: true
file: TVRename\Properties\AssemblyInfo.cs
assembly_informational_version: '$(APPVEYOR_BUILD_VERSION_FRIENDLY)'
test: off
before_build:
- cmd: nuget restore
build:
verbosity: minimal
after_build:
- cmd: >-
curl -fsS -o "%PROGRAMFILES(x86)%\NSIS\Plugins\x86-unicode\DotNetChecker.dll" https://raw.githubusercontent.com/ReVolly/NsisDotNetChecker/master/bin/DotNetChecker.dll
curl -fsS -o DotNetChecker.nsh https://raw.githubusercontent.com/ReVolly/NsisDotNetChecker/master/nsis/DotNetChecker.nsh
"%PROGRAMFILES(x86)%\NSIS\makensis" /WX /DVERSION="%APPVEYOR_BUILD_VERSION_FRIENDLY%" /DTAG="%APPVEYOR_BUILD_VERSION%" Installer.nsi
artifacts:
- path: 'TVRename-$(appveyor_build_version).exe'
name: 'TVRename-$(appveyor_build_version)'
deploy:
- provider: GitHub
auth_token:
secure: RLKnZ2rTJjFFyO6MSaAy4NU7xcl/uIQABbA238vhHqAOvdiyQ4s+S3nKlI5HnXwT
artifact: 'TVRename-$(appveyor_build_version)'
on:
appveyor_repo_tag: true