-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathbuild game.cmd
54 lines (48 loc) · 1.09 KB
/
build game.cmd
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
@ECHO OFF
GOTO :START
--======== Copyright 2013-2016, Planimeter, All rights reserved. ========--
--
-- Purpose:
--
--=======================================================================--
:START
ECHO Grid Engine Build
IF [%1]==[] (
GOTO DETECT
)
IF [%1]==[x64] (
GOTO 64BIT
)
IF [%1]==[x86] (
GOTO 32BIT
)
:DETECT
ECHO Detecting architecture . . .
IF EXIST "%ProgramFiles(x86)%" (
ECHO "64-bit detected!"
GOTO 64BIT
) ELSE (
ECHO "32-bit detected!"
GOTO 32BIT
)
:64BIT
ECHO Building Grid Engine 64-bit . . .
SET RELEASEDIR="Release"
MKDIR %RELEASEDIR%
CD bin\x64\win64\love
GOTO BUILD
:32BIT
ECHO Building Grid Engine 32-bit . . .
SET RELEASEDIR="Release (x86)"
MKDIR %RELEASEDIR%
CD bin\x86\win32\love
GOTO BUILD
:BUILD
XCOPY * ..\..\..\..\%RELEASEDIR% /S /Y
CD ..\..\..\..\src
..\bin\x86\win32\7za.exe a -tzip -mx9 ..\%RELEASEDIR%\game.love cfg common engine\client engine\shared engine\init.lua fonts game\client game\shared game\init.lua images public regions schemes shaders class.lua conf.lua main.lua
CD ..\%RELEASEDIR%
COPY /b love.exe+game.love game.exe
DEL love.exe
DEL game.love
CD ..