-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
39 lines (31 loc) · 1.21 KB
/
build.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
:: Not echoing commands
@echo off
:: This script folder
set HERE=%~dp0
:: Does perl is installed here ?
if not exist "%HERE%\strawberry-perl-5.16.3.1-32bit-portable\portableshell.bat" (
echo Expected %HERE%\strawberry-perl-5.16.3.1-32bit-portable\portableshell.bat has not been found.
echo Please download the corresponding archive on http://strawberryperl.com/releases.html
echo Will try to compile with system wide perl.
)
:: Adding local perl libs
setlocal
set PATH=%HERE%\strawberry-perl-5.16.3.1-32bit-portable\perl\bin;%PATH%
set PATH=%HERE%\strawberry-perl-5.16.3.1-32bit-portable\perl\site\bin;%PATH%
@REM if not defined %PATH% or echo ;%PATH%; | find /C /I ";<%HERE%\strawberry-perl-5.16.3.1-32bit-portable\perl\bin>;"(
@REM
@REM )
@REM if echo ;%PATH%; | find /C /I ";<%HERE%\strawberry-perl-5.16.3.1-32bit-portable\perl\site\bin>;"(
@REM
@REM )
:: Compile
echo Compiling KSE...
call pp kse.pl -u -o KSE.exe
:: call pp kse.pl -o KSE.exe --gui
echo Applying icon...
:: Causes corruption -> not used for debug
:: call perl -e "use Win32::Exe; $exe = Win32::Exe->new('KSE.exe'); $exe->set_single_group_icon('boba.ico'); $exe->write;"
:: perl icon.pl kse.exe boba.ico
echo Launching KSE...
call .\KSE.exe
endlocal