]>
Commit | Line | Data |
---|---|---|
26edf476 RN |
1 | @echo OFF\r |
2 | echo STARTING INSTALLER PROCESS...\r | |
3 | \r | |
4 | echo Create Icon\r | |
5 | pushd installer\pixmaps\r | |
6 | windres.exe viking_icon.rc -o viking_icon.o\r | |
7 | popd\r | |
8 | \r | |
9 | echo Remove debugging symbols\r | |
10 | pushd ..\src\r | |
11 | strip.exe -g viking.exe\r | |
12 | popd\r | |
13 | \r | |
14 | set MYCOPY=copy /y\r | |
15 | set DESTINATION=installer\bin\r | |
16 | echo Copying locale files into layout required by NSIS\r | |
17 | dir ..\po\*.gmo /B > gmolist.txt\r | |
18 | :: Create directories like de\LC_MESSAGES\r | |
55639391 RN |
19 | for /f %%i in (gmolist.txt) do mkdir %DESTINATION%\%%~ni\LC_MESSAGES\r |
20 | for /f %%i in (gmolist.txt) do %MYCOPY% ..\po\%%i %DESTINATION%\%%~ni\LC_MESSAGES\viking.mo\r | |
26edf476 RN |
21 | del gmolist.txt\r |
22 | \r | |
23 | echo 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 | |
40 | echo Run NSIS\r | |
41 | pushd installer\r | |
42 | "C:\Program Files\NSIS\makensisw.exe" viking-installer.nsi\r | |
43 | popd\r | |
44 | \r |