diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-09-10 20:37:22 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-09-10 20:37:22 +0300 |
commit | a2ef1dc23b1d5e103aa4454fdd82a5773a6152ef (patch) | |
tree | 9595bb6a25b5b4c094e55c844fe728b7221c14cd /msi/createmsi.py | |
parent | d3fab4c9655091b9635346f50dc19da01ecf44a6 (diff) | |
download | meson-a2ef1dc23b1d5e103aa4454fdd82a5773a6152ef.zip meson-a2ef1dc23b1d5e103aa4454fdd82a5773a6152ef.tar.gz meson-a2ef1dc23b1d5e103aa4454fdd82a5773a6152ef.tar.bz2 |
Fix installer generation on 64 bit Windows.
Diffstat (limited to 'msi/createmsi.py')
-rwxr-xr-x | msi/createmsi.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/msi/createmsi.py b/msi/createmsi.py index c635343..3ad3af4 100755 --- a/msi/createmsi.py +++ b/msi/createmsi.py @@ -42,10 +42,10 @@ class PackageGenerator: self.update_guid = '141527EE-E28A-4D14-97A4-92E6075D28B2' self.main_xml = 'meson.wxs' self.main_o = 'meson.wixobj' - self.bytesize = '32' if '32' in platform.architecture()[0] else '64' - self.final_output = 'meson-%s-%s.msi' % (self.version, self.bytesize) + self.bytesize = 32 if '32' in platform.architecture()[0] else 64 + self.final_output = 'meson-%s-%d.msi' % (self.version, self.bytesize) self.staging_dirs = ['dist', 'dist2'] - if self.bytesize == '64': + if self.bytesize == 64: self.progfile_dir = 'ProgramFiles64Folder' else: self.progfile_dir = 'ProgramFilesFolder' @@ -103,17 +103,20 @@ class PackageGenerator: 'Version': self.version, }) - ET.SubElement(product, 'Package', { + package = ET.SubElement(product, 'Package', { 'Id': '*', 'Keywords': 'Installer', 'Description': 'Meson %s installer' % self.version, 'Comments': 'Meson is a high performance build system', 'Manufacturer': 'The Meson Development Team', - 'InstallerVersion': '100', + 'InstallerVersion': '200', 'Languages': '1033', 'Compressed': 'yes', 'SummaryCodepage': '1252', }) + + if self.bytesize == 64: + package.set('Platform', 'x64') ET.SubElement(product, 'Media', { 'Id': '1', 'Cabinet': 'meson.cab', |