Commit 417f541a authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜 Committed by GStreamer Marge Bot
Browse files

cerbero: Fix creation of MSIs on Windows

This broke due to a typo in 28f6c737.

Fixes #303

Part-of: <!617>
parent 37cd678f
Pipeline #208037 passed with stages
in 58 minutes and 2 seconds
......@@ -513,7 +513,7 @@ class MSI(WixBase):
self.package.get_install_dir())
versiondir = self._add_dir(installdir, "Version", self.package.sdk_version)
# archdir has to be toolchain-specific: mingw_x86_64, uwp-debug_arm64, etc
platform_arch = '_'.join(self._get_toolchain_target_platform_arch())
platform_arch = '_'.join(self.config._get_toolchain_target_platform_arch())
archdir = self._add_dir(versiondir, 'Architecture', platform_arch)
self.installdir = self._add_dir(archdir, 'SDKROOTDIR', '.')
......@@ -553,7 +553,7 @@ class MSI(WixBase):
envcomponent = etree.SubElement(self.installdir, 'Component',
Id='EnvironmentVariables', Guid=self._get_uuid())
# archdir has to be toolchain-specific: mingw_x86_64, uwp-debug_arm64, etc
platform_arch = '_'.join(self._get_toolchain_target_platform_arch())
platform_arch = '_'.join(self.config._get_toolchain_target_platform_arch())
root_env_var = self.package.get_root_env_var(platform_arch)
env = etree.SubElement(envcomponent, 'Environment', Id="SdkRootEnv",
Action="set", Part="all", Name=root_env_var,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment