News:

Come Chat with us live! Learn how HERE!

Main Menu

simple batch file

Started by MitSugna, January 24, 2010, 10:39:45 AM

how?

sucks
5 (50%)
rocks
5 (50%)

Total Members Voted: 9

MitSugna

place it in your trunk. run it. it generates a test setup.
btw rename the run.bmp to blah.bat
you need infozip

Kiwi


ACKMAN

@echo off

setlocal

set MAIN=%~dp0
set BINSRC=%MAIN%build\release-mingw32-x86\
set BINDST=%MAIN%release\

mkdir "%BINDST%base" >nul 2>nul
mkdir "%BINDST%local\base" >nul 2>nul
copy /Y "%BINSRC%*.exe" "%BINDST%" > nul
copy /Y "%BINSRC%base\*.dll" "%BINDST%local\base" >nul
cd %MAIN%assets
%MAIN%zip -qruX9 "%BINDST%local\base\zzztest.pk3" *

endlocal

@echo on
cd %~dp0release
@echo tremded.x86 +set fs_homepath "%~dp0local" +map atcs +set vm_game 0 +set sv_pure 0 > runserver.bat
@echo pause >> runserver.bat

@echo tremulous.x86 +set fs_homepath "%~dp0local" +set vm_cgame 0 +set vm_ui 0 > runclient.bat
@echo pause >> runserver.bat

Kiwi


JacobM