-
Notifications
You must be signed in to change notification settings - Fork 16
/
appveyor.yml
48 lines (35 loc) · 1.87 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
version: 1.0.{build}
only_commits:
message: "chore: release"
image: Visual Studio 2022
build_script:
- ps: >-
git submodule init
git submodule update
echo "#pragma once" | Out-File -encoding ASCII repentogon/Version.h
$version = Get-Content version.txt -Raw
echo "#define VERSION `"$version`"" | Add-Content repentogon/Version.h
(gc repentogon/resources/scripts/main_ex.lua) -replace '\["Version"\] = "dev build"', "[`"Version`"] = `"$version`"" | Out-File -encoding ASCII repentogon/resources/scripts/main_ex.lua
(gc updater/Updater.cpp) -replace 'std::string version = "dev build";', "std::string version = `"$version`";" | Out-File -encoding ASCII updater/Updater.cpp
cmake -G "Visual Studio 17 2022" -A "Win32" -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_ZHL_VERSION="$version" -DCMAKE_REPENTOGON_VERSION="$version"
cmake --build build --config Release
cd build/Release
mkdir artifact
mv resources artifact
mv resources-repentogon artifact
if (Test-Path dsound.dll) { mv dsound.dll artifact }
if (Test-Path launcher.dll) { mv launcher.dll artifact }
if (Test-Path injector.exe) { mv injector.exe artifact }
mv libzhl.dll artifact
mv zhlREPENTOGON.dll artifact
mv Lua5.4.dll artifact
mv freetype.dll artifact
cp ../../changelog.txt artifact/rgon_changelog.txt
cd artifact
& "C:\Program Files\7-Zip\7z.exe" a -tzip -o"..\" "REPENTOGON.zip" ".\" -aoa
Push-AppveyorArtifact REPENTOGON.zip
deploy:
- provider: Webhook
url: https://app.signpath.io/API/v1/b3b61b76-b26e-4cfd-9b51-bb56d66476fa/Integrations/AppVeyor?ProjectSlug=REPENTOGON&SigningPolicySlug=release-signing
authorization:
secure: 9Q8HEL1yf+Yo/1rmKdb7kZLMb7xDvWOmnOH2GjF5vYdHDj0w9Xfdu0xtQ3h/q9TR02ImSrIoyiYj/CsZPXUaoQ==