-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathappveyor.yml
113 lines (85 loc) · 2.8 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: 1.4.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- main
skip_tags: true
skip_commits:
message: /bump version and update changelog/
image: Visual Studio 2017
configuration: Release
platform: x64
clone_folder: c:\EasyLoU
install:
- git submodule update --init --recursive
assembly_info:
patch: true
file: 'EasyLoU\Properties\AssemblyInfo.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
LOA_VERSION: 1.4.1.0
GITHUB_TOKEN:
secure: mPV5k4Dfx3gXB1zFlC373VKWr1ZsTfTkKF3HqKhborSDolrI3FFJ53t2AnavsXxx
nodejs_version: 10.21.0
cache: c:\downloads
before_build:
- ps: >-
if (!(Test-Path "c:\downloads")) {
mkdir c:\downloads
}
ls c:\downloads
$url = "https://cdn.legendsofaria.com/Legends%20of%20Aria-$env:LOA_VERSION.zip"
$file = "c:\downloads\Legends of Aria-$env:LOA_VERSION.zip"
# check if we ever downloaded dlls for the current loa version
if (!(Test-Path $file)) {
# if not, let's clean up the downloads folder
del c:\downloads\*.*
# and download the new client
Start-FileDownload $url $file
# extract dlls
7z e $file -oC:\downloads\ *.dll -r
# delete the original zip (too big to fit appveyor's cache)
del $file
# and recreate the zip with just the dlls, so that appveyor can cache it for subsequent builds
7z a -tzip $file c:\downloads\*.dll
}
# copy dlls to the libs folder
cp c:\downloads\*.dll $pwd\LoU\libs\
ls $pwd\LoU\libs\
# nuget restore needed for some projects
nuget restore
build:
project: c:\EasyLoU\EasyLoU.sln
verbosity: minimal
after_build:
- ps: >-
$artifact = "Launcher-$env:APPVEYOR_BUILD_VERSION.zip"
7z a -tzip $artifact $pwd\Examples\ $pwd\EasyLoU_Launcher\bin\x64\Release\Launcher.exe
artifacts:
- path: Launcher-$(APPVEYOR_BUILD_VERSION).zip
deploy:
- provider: GitHub
tag: $(APPVEYOR_BUILD_VERSION)
release: EasyLoU v$(APPVEYOR_BUILD_VERSION) - Client v$(LOA_VERSION)
auth_token:
secure: mPV5k4Dfx3gXB1zFlC373VKWr1ZsTfTkKF3HqKhborSDolrI3FFJ53t2AnavsXxx
artifact: Launcher-$(APPVEYOR_BUILD_VERSION).zip
on:
branch: main
after_deploy:
- ps: >-
npm install github-release-notes -g
gren release --token $env:GITHUB_TOKEN --override
gren changelog --token $env:GITHUB_TOKEN --override
git config --global credential.helper store
Add-Content -Path "$HOME\.git-credentials" -Value "https://$($env:GITHUB_TOKEN):x-oauth-basic@github.com`n" -NoNewline
git config --global user.email "ladybinary@protonmail.com"
git config --global user.name "AppVeyor"
git checkout main -q
git add CHANGELOG.md
git add ./*AssemblyInfo.cs
git commit -m "bump version and update changelog"
git push -q