-
Notifications
You must be signed in to change notification settings - Fork 12
/
appveyor.yml
81 lines (41 loc) · 1.82 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
version: 1.0.{build}
build_script:
- cmd: >-
set MINGW=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32
set PATH=%MINGW%\bin;C:\MinGW\msys\1.0\bin;%PATH%
set ARCH=MINGW
set WINDRES=windres
set SDL_VER=2.0.9
set ZLIB_VER=1.3.1
echo === Environment ====================================================
echo APPVEYOR_PROJECT_NAME=%APPVEYOR_PROJECT_NAME%
echo APPVEYOR_BUILD_NUMBER=%APPVEYOR_BUILD_NUMBER%
echo APPVEYOR_BUILD_VERSION=%APPVEYOR_BUILD_VERSION%
echo === Download zlib ==================================================
cd ..
curl -s https://zlib.net/zlib-%ZLIB_VER%.tar.gz | tar xz
echo === Build zlib =====================================================
cd zlib-%ZLIB_VER%
call "%VS90COMNTOOLS%\vsvars32.bat"
nmake -f win32/Makefile.msc
cd ..
echo === Download SDL ===================================================
curl -s "https://www.libsdl.org/release/SDL2-devel-%SDL_VER%-mingw.tar.gz" | tar -xz
echo === Build Digger ===================================================
cd digger
make STRIP=strip BUILD_TYPE=debug clean all
copy digger.exe digger_debug.exe
make STRIP=strip BUILD_TYPE=production clean all
echo === Create Artifact ================================================
copy ..\zlib-%ZLIB_VER%\zlib1.dll
copy "..\SDL2-%SDL_VER%\i686-w64-mingw32\bin\SDL2.dll"
zip -j digger-win32.zip digger.exe digger_debug.exe digger.txt zlib1.dll SDL2.dll
echo === Create Installer ===============================================
touch digger.sco
touch digger.ini
touch digger.log
"C:\Program Files (x86)\Inno Setup 5\iscc.exe" pkg\windows\digger.iss
copy pkg\windows\DiggerRemastered-Setup.exe
artifacts:
- path: digger-win32.zip
- path: DiggerRemastered-Setup.exe