From 2151a849085f53a8e17016540271c93f8efad624 Mon Sep 17 00:00:00 2001
From: Raoul Snyman <raoul@snyman.info>
Date: Thu, 11 Apr 2019 09:54:19 -0700
Subject: [PATCH] Add architecture into MSI file name

---
 builders/windows-builder.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/builders/windows-builder.py b/builders/windows-builder.py
index 40174b1..20af1c1 100644
--- a/builders/windows-builder.py
+++ b/builders/windows-builder.py
@@ -200,7 +200,11 @@ class WindowsBuilder(Builder):
         Run the WiX toolset to create an installer
         """
         self._print('Running WiX tools...')
-        msi_file = os.path.abspath(os.path.join(self.dist_path, '..', 'OpenLP-{}.msi'.format(self.version)))
+        if self.arch == 'x64':
+            version = '{}-x64'.format(self.version)
+        else:
+            version = self.version
+        msi_file = os.path.abspath(os.path.join(self.dist_path, '..', 'OpenLP-{}.msi'.format(version)))
         if os.path.exists(msi_file):
             self._print_verbose('Removing old MSI file')
             os.unlink(msi_file)