build.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright (C) 2001-2006 William Joseph.
  2. #
  3. # This file is part of GtkRadiant.
  4. #
  5. # GtkRadiant is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # GtkRadiant is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with GtkRadiant; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. import datetime
  19. from installer import MSIPackage
  20. def format_date_today():
  21. return str(datetime.date.today())
  22. package = MSIPackage("gtkradiant-1.5.0.xml")
  23. package.writeMSI("template.msi", "GtkRadiant-1.5.0-" + format_date_today() + ".msi")
  24. #package = MSIPackage("q3a_example_maps.xml")
  25. #package.writeMSI("template.msi", "Q3A-Example-Maps-" + format_date_today() + ".msi")
  26. #package = MSIPackage("wolf_example_maps.xml")
  27. #package.writeMSI("template.msi", "Wolf-Example-Maps-" + format_date_today() + ".msi")
  28. #package = MSIPackage("ja_example_maps.xml")
  29. #package.writeMSI("template.msi", "JA-Example-Maps-" + format_date_today() + ".msi")
  30. #package = MSIPackage("et_example_maps.xml")
  31. #package.writeMSI("template.msi", "ET-Example-Maps-" + format_date_today() + ".msi")
  32. #package = MSIPackage("jk2_example_maps.xml")
  33. #package.writeMSI("template.msi", "JK2-Example-Maps-" + format_date_today() + ".msi")
  34. #package = MSIPackage("sof2_example_maps.xml")
  35. #package.writeMSI("template.msi", "SoF2-Example-Maps-" + format_date_today() + ".msi")
  36. #package = MSIPackage("q2_example_maps.xml")
  37. #package.writeMSI("template.msi", "Q2-Example-Maps-" + format_date_today() + ".msi")
  38. #package = MSIPackage("her2_example_maps.xml")
  39. #package.writeMSI("template.msi", "Heretic2-Example-Maps-" + format_date_today() + ".msi")
  40. #package = MSIPackage("hl_example_maps.xml")
  41. #package.writeMSI("template.msi", "HalfLife-Example-Maps-" + format_date_today() + ".msi")
  42. #package = MSIPackage("ef_example_maps.xml")
  43. #package.writeMSI("template.msi", "STVEF-Example-Maps-" + format_date_today() + ".msi")