]> git.street.me.uk Git - andy/viking.git/blame - win32/installer.bat
Make the Spanish version of the Windows Installer actually selectable.
[andy/viking.git] / win32 / installer.bat
CommitLineData
26edf476
RN
1@echo OFF\r
2echo STARTING INSTALLER PROCESS...\r
3\r
4echo Create Icon\r
5pushd installer\pixmaps\r
6windres.exe viking_icon.rc -o viking_icon.o\r
7popd\r
8\r
9echo Remove debugging symbols\r
10pushd ..\src\r
11strip.exe -g viking.exe\r
12popd\r
13\r
14set MYCOPY=copy /y\r
15set DESTINATION=installer\bin\r
16echo Copying locale files into layout required by NSIS\r
17dir ..\po\*.gmo /B > gmolist.txt\r
18:: Create directories like de\LC_MESSAGES\r
55639391
RN
19for /f %%i in (gmolist.txt) do mkdir %DESTINATION%\%%~ni\LC_MESSAGES\r
20for /f %%i in (gmolist.txt) do %MYCOPY% ..\po\%%i %DESTINATION%\%%~ni\LC_MESSAGES\viking.mo\r
26edf476
RN
21del gmolist.txt\r
22\r
23echo Copying other stuff\r
24%MYCOPY% ..\src\viking.exe %DESTINATION%\r
25%MYCOPY% installer\pixmaps\viking_icon.ico %DESTINATION%\r
26%MYCOPY% ..\COPYING %DESTINATION%\COPYING_GPL.txt\r
27::\r
28:: It is assumed you've tested the code after building it :)\r
29:: Thus GPSBabel should be here\r
30%MYCOPY% ..\src\gpsbabel.exe %DESTINATION%\r
31:: Otherwise install it from http://www.gpsbabel.org/download.html\r
32:: (or get it from an old Viking Windows release)\r
33:: and copy the command line program into ..\src\r
34::\r
35%MYCOPY% C:\MinGW\bin\libcurl.dll %DESTINATION%\r
36%MYCOPY% C:\MinGW\bin\libexif-12.dll %DESTINATION%\r
37::\r
38%MYCOPY% installer\translations\*nsh %DESTINATION%\r
39\r
40echo Run NSIS\r
41pushd installer\r
42"C:\Program Files\NSIS\makensisw.exe" viking-installer.nsi\r
43popd\r
44\r