-
Notifications
You must be signed in to change notification settings - Fork 1
/
BuildRelease.bat
44 lines (32 loc) · 1.36 KB
/
BuildRelease.bat
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
@echo off
set CUR_DIR=%~dp0
set OBJ_DIR=%CUR_DIR%\obj
set BIN_DIR=%CUR_DIR%\bin
set THIRDPARTY_DIR=%CUR_DIR%\3rdParty
rmdir /S /Q "%OBJ_DIR%" "%BIN_DIR%"
mkdir "%CUR_DIR%\obj"
mkdir "%CUR_DIR%\bin"
mkdir "%OBJ_DIR%\SporebinEP1"
mkdir "%OBJ_DIR%\SporeModLoader"
mkdir "%OBJ_DIR%\SporeModLoader\CoreLibs"
mkdir "%OBJ_DIR%\SporeModLoader\ModLibs"
mkdir "%OBJ_DIR%\SporeModLoader\SporeModManager"
CALL "%THIRDPARTY_DIR%\BuildDetours.bat"
CALL "%THIRDPARTY_DIR%\BuildSporeModAPI.bat"
msbuild "%CUR_DIR%\SporeModLoader" ^
/p:Configuration=Release ^
/p:Platform=Win32 ^
/m
msbuild "%CUR_DIR%\SporeModManager" ^
/p:Configuration=Release ^
/p:Platform=Win32 ^
/m
copy "%THIRDPARTY_DIR%\Spore-ModAPI\dll\Release\SporeModAPI.dll" "%OBJ_DIR%\SporeModLoader\CoreLibs\SporeModAPI.dll"
copy "%THIRDPARTY_DIR%\Spore-ModAPI-legacy\SporeModAPI-disk.dll" "%OBJ_DIR%\SporeModLoader\CoreLibs\SporeModAPI-disk.dll"
copy "%THIRDPARTY_DIR%\Spore-ModAPI-legacy\SporeModAPI-steam_patched.dll" "%OBJ_DIR%\SporeModLoader\CoreLibs\SporeModAPI-steam_patched.dll"
copy "%CUR_DIR%\SporeModLoader\Bin\Release\dinput8.dll" "%OBJ_DIR%\SporebinEP1\dinput8.dll"
copy "%CUR_DIR%\SporeModManager\Bin\Release\SporeModManager.exe" "%OBJ_DIR%\SporeModLoader\SporeModManager"
cd "%OBJ_DIR%"
"C:\Program Files\7-Zip\7z" a -tzip "%BIN_DIR%\SporeModLoader.zip" *
cd "%CUR_DIR%"
rmdir /S /Q "%OBJ_DIR%"