forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://simulationcraft.googlecode.com/svn/trunk@16269 3b4652a1-8050-0410-ac47-3d40261b0f8b
- Loading branch information
philoptik
committed
Apr 15, 2013
1 parent
400179b
commit beb7e6a
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
REM Small SimC release script created by [email protected] | ||
REM It sits in my /git folder, above the simulationcraft folder | ||
REM After tagging for a release, I edit the variables 'version' | ||
REM and 'rev' and execute it. | ||
|
||
IF (%1) == () exit /b | ||
|
||
set version=%1 | ||
|
||
REM REQUIRES: qmake, make, g++ in your PATH, as well as a archiver | ||
|
||
set target_dir=simc-%version% | ||
set build_dir=simc-%version%-build | ||
set tag=release-%version% | ||
set MAKE=mingw32-make | ||
set QMAKE=qmake | ||
set ARCHIVER=7z a | ||
|
||
|
||
call svn checkout https://simulationcraft.googlecode.com/svn/tags/%tag% %target_dir%/source | ||
|
||
REM copy things over to the temporary build dir, and build cli + gui there | ||
xcopy /E /I /H %target_dir%\source %build_dir% | ||
cd %build_dir% | ||
cd engine | ||
%MAKE% -j4 | ||
cd .. | ||
%QMAKE% simcqt.pro | ||
%MAKE% -j4 release | ||
cd .. | ||
|
||
|
||
xcopy /E /I /H %target_dir%\source\profiles %target_dir%\profiles | ||
rd /Q /S %target_dir%\source\profiles\ | ||
|
||
move %target_dir%\source\Examples.simc %target_dir%\ | ||
move %target_dir%\source\Legend.html %target_dir%\ | ||
move %target_dir%\source\READ_ME_FIRST.txt %target_dir%\ | ||
move %target_dir%\source\Welcome.html %target_dir%\ | ||
move %target_dir%\source\Welcome.png %target_dir%\ | ||
move %target_dir%\source\windows_env_path.vbs %target_dir%\ | ||
|
||
|
||
xcopy %target_dir%\source\mingw_qt5_dll_setup.bat %target_dir%\ | ||
cd %target_dir% | ||
call mingw_qt5_dll_setup.bat | ||
cd .. | ||
del %target_dir%\mingw_qt5_dll_setup.bat | ||
|
||
del /F /Q /S %target_dir%\source\ | ||
rd /Q /S %target_dir%\source\ | ||
|
||
xcopy %build_dir%\engine\simc.exe %target_dir%\ | ||
xcopy %build_dir%\release\SimulationCraft.exe %target_dir%\ | ||
xcopy Win32OpenSSL_Light-1_0_1c.exe %target_dir%\ | ||
|
||
REM remove tmp build dir | ||
rd /Q /S %build_dir% | ||
|
||
|
||
call %ARCHIVER% simc-%version%-win32.zip %target_dir% |