mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 04:52:50 +00:00
Use a different approach to get platform info in wxs
This commit is contained in:
parent
85ead230a4
commit
40f1c24ecd
@ -174,9 +174,11 @@ class WindowsBuilder(Builder):
|
||||
self._print_verbose('Reading base WiX file')
|
||||
with open(os.path.join(config_dir, 'OpenLP-base.wxs'), 'rt') as base_file:
|
||||
xml = base_file.read()
|
||||
progfilefolder = 'ProgramFiles64Folder' if self.arch == 'x64' else 'ProgramFilesFolder'
|
||||
xml = xml % dict(dialog=os.path.join(config_dir, 'WizardMain.bmp'),
|
||||
banner=os.path.join(config_dir, 'WizardBanner.bmp'),
|
||||
platform=self.arch)
|
||||
platform=self.arch,
|
||||
progfilefolder=progfilefolder)
|
||||
tree = fromstring(xml.encode('utf8'))
|
||||
self._print_verbose('Creating XML fragments from files and directories')
|
||||
fragments = self._get_fragments_from_files(self.dist_path)
|
||||
|
@ -24,12 +24,8 @@
|
||||
<WixVariable Id="WixUIDialogBmp" Value="%(dialog)s" />
|
||||
<WixVariable Id="WixUIBannerBmp" Value="%(banner)s" />
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<?if "%(platform)s"="x64"?>
|
||||
<Directory Id="ProgramFiles64Folder">
|
||||
<?else?>
|
||||
<Directory Id="ProgramFilesFolder">
|
||||
<?endif?>
|
||||
<Directory Id="INSTALLDIR" Name="OpenLP"/>
|
||||
<Directory Id="%(progfilefolder)s">
|
||||
<Directory Id="INSTALLDIR" Name="OpenLP"/>
|
||||
</Directory>
|
||||
<Directory Id="ProgramMenuFolder" Name="Programs">
|
||||
<Directory Id="ProgramMenuDir" Name="OpenLP">
|
||||
|
Loading…
Reference in New Issue
Block a user