-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
appveyor.yml
66 lines (49 loc) · 1.71 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
64
65
66
image: Visual Studio 2022
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 -verbosity quiet -PackagesDirectory TVRename\packages
build:
verbosity: minimal
after_build:
#- cmd: ls ../* -R
#- sh: 7z a -r TVRename-Full-Build.zip *.*
- 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-Full-Build.zip'
- path: 'TVRename-$(appveyor_build_version).exe'
name: 'TVRename-$(appveyor_build_version)'
deploy:
- provider: GitHub
auth_token:
secure: fS4peelilh527mw4hpY9FP89YyqLHq1GFlD8+cwD4B02+1obWoEAQuxhN0cI75mT
artifact: 'TVRename-$(appveyor_build_version)'
on:
appveyor_repo_tag: true