ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/win32/ppwin
Revision: 1.34
Committed: Mon Dec 26 22:30:21 2011 UTC (12 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.33: +2 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #!/bin/bash
2    
3     # Convert a gtk2-perl program to a standalone .exe, including all
4     # libraries and runtime files required for running as well as required
5     # datafiles. I _literaly_ sold my soul to the devil and paid with blood
6     # for this. Microsoft die die die die die die die die die die die die
7    
8     PERL=c:\\perl
9     GTK2=c:\\gtk
10    
11     (
12     cat <<EOF
13 root 1.15 $GTK2/etc;root/etc
14     $GTK2/share/themes/MS-Windows/gtk-2.0;root/share/themes/MS-Windows/gtk-2.0
15     $GTK2/lib/gtk-2.0;root/lib/gtk-2.0
16     $GTK2/lib/pango;root/lib/pango
17 root 1.27 docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst
18 root 1.15 win32/splash.bmp;SPLASH.bmp
19 root 1.1 EOF
20    
21 root 1.27 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST
22 root 1.1
23     cd $GTK2/bin || exit
24     for dll in \
25     SDL.dll \
26     SDL_image.dll \
27     SDL_mixer.dll \
28 root 1.20 libogg-0.dll \
29     libvorbis-0.dll \
30     libvorbisfile-3.dll \
31 root 1.34 mikmod.dll \
32 root 1.1 jpeg.dll \
33     xmltok.dll \
34     xmlparse.dll \
35 root 1.29 libpng12-0.dll \
36 root 1.1 freetype6.dll \
37     zlib1.dll \
38     iconv.dll \
39     intl.dll \
40 root 1.22 libgthread-2.0-0.dll \
41 root 1.1 libglib-2.0-0.dll \
42     libgobject-2.0-0.dll \
43     libgmodule-2.0-0.dll \
44     libpango-1.0-0.dll \
45     libpangoft2-1.0-0.dll \
46 root 1.29 libfontconfig-1.dll \
47 root 1.1 fontconfig.dll \
48 root 1.25 libdb45.dll \
49     pthreadVC2.dll
50 root 1.1 do
51     echo "$GTK2/bin/$dll;shlib/$dll"
52     done
53     ) >addlist
54 root 1.14 cat addlist
55 root 1.1
56     trap "rm addlist" 0
57    
58 root 1.34 GUI=--gui
59 root 1.31 #$PERL/bin/perl $PERL/bin/pp $GUI --icon win32/client.ico -C -I "//.host/Shared Folders/root/src/Deliantra" -I . -o deliantra.exe -A addlist bin/deliantra
60 root 1.22 $PERL/bin/perl $PERL/bin/pp $GUI \
61     -z 9 \
62 root 1.27 -a "blib/arch/auto/Deliantra/Client/Client.dll;lib/auto/Deliantra/Client/Client.dll" \
63 root 1.22 -M AnyEvent::Impl::EV \
64 root 1.33 -M attributes \
65     -M utf8 \
66 root 1.22 --icon win32/client.ico -C -I . -o deliantra.exe -A addlist bin/deliantra
67 root 1.1