~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to win32/makedist.bat

  • Committer: SwagTron
  • Date: 2019-03-03 20:57:16 UTC
  • Revision ID: swagtron-20190303205716-nk32wtrusb3tum54
As far as I am aware, compiling 2.9 sty+ct+ap was incredibly difficult and impossible without using older versions merged with the latest revision (thanks to Nelg's help). Created a proper win32 folder, a readme file, and made it simple to compile for windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
REM This batch file can be used to build the target directories "dist" and "debug" one layer
 
3
REM up from here where the release and debug binaries will be compiled to.
 
4
 
 
5
 
 
6
SET AA_DIR=..\
 
7
SET LIBS_DIR=..\..\winlibs
 
8
SET DIST_DIR_BASE=dist
 
9
SET DEBUG_DIR_BASE=debug
 
10
SET DIST_DIR=..\..\%DIST_DIR_BASE%
 
11
SET DEBUG_DIR=..\..\%DEBUG_DIR_BASE%
 
12
 
 
13
echo making directory...
 
14
REM del %DIST_DIR% /S /Q
 
15
REM del %DEBUG_DIR% /S /Q
 
16
md %DIST_DIR%
 
17
md %DIST_DIR%\var
 
18
md %DEBUG_DIR%
 
19
 
 
20
echo Your personal configuration will be stored here. Updates will never touch this directory. > %DIST_DIR%\var\README.txt
 
21
 
 
22
echo generating version.h...
 
23
for /f "tokens=1-5 delims=:" %%d in ("%time%") do set var=%date:~10,4%%date:~4,2%%date:~7,2%
 
24
 
 
25
set datetimestr=%var: =0%
 
26
echo _alpha%datetimestr% > %AA_DIR%/version.h
 
27
 
 
28
echo copying files...
 
29
xcopy %AA_DIR%\arenas %DIST_DIR%\arenas /I /E /Y
 
30
xcopy %AA_DIR%\config %DIST_DIR%\config /I /E /Y
 
31
xcopy %AA_DIR%\doc %DIST_DIR%\doc /I /E /Y
 
32
xcopy %AA_DIR%\language %DIST_DIR%\language /I /E /Y
 
33
xcopy %AA_DIR%\models %DIST_DIR%\models /I /E /Y
 
34
xcopy %AA_DIR%\music %DIST_DIR%\music /I /E /Y
 
35
xcopy %AA_DIR%\sound %DIST_DIR%\sound /I /E /Y
 
36
md %DIST_DIR%\resource
 
37
xcopy %AA_DIR%\resource\proto %DIST_DIR%\resource\included /I /E /Y
 
38
xcopy %AA_DIR%\resource\included %DIST_DIR%\resource\included /I /E /Y
 
39
xcopy %AA_DIR%\batch\make\sortresources.py %DIST_DIR%\resource\included /I /E /Y
 
40
xcopy %AA_DIR%\textures %DIST_DIR%\textures /I /E /Y
 
41
xcopy %AA_DIR%\*.txt %DIST_DIR% /I /Y
 
42
copy %AA_DIR%\README %DIST_DIR%\README.txt /Y
 
43
copy %AA_DIR%\README-SDL %DIST_DIR%\README-SDL.txt /Y
 
44
rename %DIST_DIR%\config\aiplayers.cfg.in aiplayers.cfg
 
45
rename %DIST_DIR%\language\languages.txt.in languages.txt
 
46
 
 
47
echo copying binary only dlls ( WATCH FOR ERRORS! )...
 
48
xcopy %LIBS_DIR%\SDL_image\VisualC\graphics\lib\*.dll %DIST_DIR% /Y
 
49
xcopy %LIBS_DIR%\libxml2\lib\*.dll %DIST_DIR% /Y
 
50
xcopy %LIBS_DIR%\iconv\lib\*.dll %DIST_DIR% /Y
 
51
 
 
52
echo copying installation files...
 
53
cd %AA_DIR%\win32\required
 
54
xcopy *.nsi %DIST_DIR%\ /Y 
 
55
xcopy *.bat %DIST_DIR%\ /Y
 
56
xcopy *.bmp %DIST_DIR%\ /Y
 
57
xcopy *.url %DIST_DIR%\ /Y
 
58
cd ..\
 
59
 
 
60
echo moving resources
 
61
cd %DIST_DIR%\resource\included
 
62
sortresources.py
 
63
cd ..\..\..
 
64
 
 
65
echo making debug...
 
66
xcopy %DIST_DIR_BASE% %DEBUG_DIR_BASE% /I /E /Y
 
67
 
 
68
SET AA_DIR=
 
69
SET LIBS_DIR=
 
70
SET DIST_DIR=
 
71
SET DEBUG_DIR=
 
72
 
 
73
echo done!
 
74
pause