1 # Copyright (C) 2001-2006 William Joseph.
3 # This file is part of GtkRadiant.
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.
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.
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
20 from installer import MSIPackage
22 def format_date_today():
23 return str(datetime.date.today())
25 package = MSIPackage("gtkradiant-1.5.0.xml")
26 package.writeMSI("template.msi", "GtkRadiant-1.5.0-" + format_date_today() + ".msi")
28 #package = MSIPackage("q3a_example_maps.xml")
29 #package.writeMSI("template.msi", "Q3A-Example-Maps-" + format_date_today() + ".msi")
31 #package = MSIPackage("wolf_example_maps.xml")
32 #package.writeMSI("template.msi", "Wolf-Example-Maps-" + format_date_today() + ".msi")
34 #package = MSIPackage("ja_example_maps.xml")
35 #package.writeMSI("template.msi", "JA-Example-Maps-" + format_date_today() + ".msi")
37 #package = MSIPackage("et_example_maps.xml")
38 #package.writeMSI("template.msi", "ET-Example-Maps-" + format_date_today() + ".msi")
40 #package = MSIPackage("jk2_example_maps.xml")
41 #package.writeMSI("template.msi", "JK2-Example-Maps-" + format_date_today() + ".msi")
43 #package = MSIPackage("sof2_example_maps.xml")
44 #package.writeMSI("template.msi", "SoF2-Example-Maps-" + format_date_today() + ".msi")
46 #package = MSIPackage("q2_example_maps.xml")
47 #package.writeMSI("template.msi", "Q2-Example-Maps-" + format_date_today() + ".msi")
49 #package = MSIPackage("her2_example_maps.xml")
50 #package.writeMSI("template.msi", "Heretic2-Example-Maps-" + format_date_today() + ".msi")
52 #package = MSIPackage("hl_example_maps.xml")
53 #package.writeMSI("template.msi", "HalfLife-Example-Maps-" + format_date_today() + ".msi")
55 #package = MSIPackage("ef_example_maps.xml")
56 #package.writeMSI("template.msi", "STVEF-Example-Maps-" + format_date_today() + ".msi")
58 #package = MSIPackage("warsow_mapping_files.xml")
59 #package.writeMSI("template.msi", "Warsow-mapping-files-" + format_date_today() + ".msi")