grab_files.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Download the necessary files
  2. wget -O gtkbundle.zip http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip
  3. wget -O pygobject.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.28/pygobject-2.28.3.win32-py2.7.exe
  4. wget -O pycairo.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/pycairo-1.8.10.win32-py2.7.exe
  5. wget -O pygtk.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-2.24.0.win32-py2.7.exe
  6. # GTK runtime
  7. mkdir gtkbundle
  8. unzip -d gtkbundle gtkbundle.zip
  9. cd gtkbundle
  10. rm -r src man include share/doc share/man share/gtk-doc share/gtk-2.0/demo bin/gtk-demo.exe etc/bash_completion.d
  11. cd ..
  12. # Python bindings
  13. mkdir pygobject
  14. unzip -d pygobject pygobject.exe
  15. mkdir pycairo
  16. unzip -d pycairo pycairo.exe
  17. mkdir pygtk
  18. unzip -d pygtk pygtk.exe
  19. # Reassemble into pynsist_pkgs
  20. echo -n "Assembling GTK files into pynsist_pkgs... "
  21. rm -r pynsist_pkgs
  22. mkdir pynsist_pkgs
  23. mv gtkbundle pynsist_pkgs/gtk
  24. cp -r pygobject/PLATLIB/* pynsist_pkgs
  25. rm -r pygobject
  26. cp -r pycairo/PLATLIB/* pynsist_pkgs
  27. cp -r pycairo/DATA/lib/site-packages/cairo/* pynsist_pkgs/cairo
  28. rm -r pycairo
  29. cp -r pygtk/PLATLIB/* pynsist_pkgs
  30. rm -r pygtk
  31. rm -r pynsist_pkgs/gtk-2.0/tests
  32. echo "done"