GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: add checkbox for whether to install zebar
Lars Berger6690e9343b96
diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yamlindex 66711b70..42108a3c 100644--- a/.github/workflows/package.yaml+++ b/.github/workflows/package.yaml@@ -39,19 +39,19 @@ jobs:- name: Create MSI installer (x64)run: |wix build -arch "x64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./tmp/installer-x64.msi" "./resources/wix/standalone.wxs" "./resources/wix/standalone-ui.wxs"+ -out "./tmp/installer-x64.msi" "./resources/wix/standalone.wxs" "./resources/wix/standalone-ui.wxs" \-d VERSION_NUMBER="${{ needs.next-version.outputs.new-release-version }}"- name: Create MSI installer (arm64)run: |wix build -arch "arm64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./tmp/installer-arm64.msi" "./resources/wix/standalone.wxs" "./resources/wix/standalone-ui.wxs"+ -out "./tmp/installer-arm64.msi" "./resources/wix/standalone.wxs" "./resources/wix/standalone-ui.wxs" \-d VERSION_NUMBER="${{ needs.next-version.outputs.new-release-version }}"- name: Create universal installerrun: |wix build -arch "x64" -ext WixToolset.BootstrapperApplications.wixext \- -out "./tmp/installer-universal.exe" "./resources/wix/bundle.wxs"+ -out "./tmp/installer-universal.exe" "./resources/wix/bundle.wxs" \-d VERSION_NUMBER="${{ needs.next-version.outputs.new-release-version }}"- uses: actions/upload-artifact@v4diff --git a/resources/wix/bundle-theme.xml b/resources/wix/bundle-theme.xmlindex c7571a81..232f5314 100644--- a/resources/wix/bundle-theme.xml+++ b/resources/wix/bundle-theme.xml@@ -54,15 +54,14 @@VisibleCondition="WixStdBAShowVersion">#(loc.InstallVersion)</Label><Checkbox- Name="WSLCheckbox"+ Name="Custom_InstallZebar"X="185"Y="250"Width="-11"Height="17"TabStop="yes"FontId="6"- HideWhenDisabled="yes"- >Install WSL if not present</Checkbox>+ >Install Zebar (recommended)</Checkbox><ButtonName="OptionsButton"X="-171"diff --git a/resources/wix/bundle.wxs b/resources/wix/bundle.wxsindex e493b905..bec6e145 100644--- a/resources/wix/bundle.wxs+++ b/resources/wix/bundle.wxs@@ -12,16 +12,19 @@<BootstrapperApplication><bal:WixStandardBootstrapperApplicationLicenseUrl=""- Theme="HyperlinkSidebarLicense"+ Theme="hyperlinkSidebarLicense"ThemeFile="resources/wix/bundle-theme.xml"SuppressOptionsUI="yes"ShowVersion="yes" /></BootstrapperApplication>+ <!-- User input variable for whether to install Zebar. -->+ <Variable Name="Custom_InstallZebar" Type="numeric" Value="1" bal:Overridable="yes" />+<Chain><!-- GlazeWM MSI for x64 architectures. --><MsiPackage- Id="GlazeWMPackageX64"+ Id="Custom_GlazeWMPackageX64"SourceFile="tmp/installer-x64.msi"InstallCondition="(VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 34404)"bal:DisplayInternalUICondition="1"@@ -30,7 +33,7 @@<!-- GlazeWM MSI for arm64 architectures. --><MsiPackage- Id="GlazeWMPackageArm64"+ Id="Custom_GlazeWMPackageArm64"SourceFile="tmp/installer-arm64.msi"InstallCondition="NativeMachine = 43620"bal:DisplayInternalUICondition="1"@@ -39,18 +42,18 @@<!-- Zebar MSI for x64 architectures. --><MsiPackage- Id="ZebarPackageX64"- SourceFile="tmp/zebar-*-x64.msi"- InstallCondition="(VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 34404)"+ Id="Custom_ZebarPackageX64"+ SourceFile="tmp/zebar-aaa-x64.msi"+ InstallCondition="(VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 34404) AND (Custom_InstallZebar = 1)"bal:DisplayInternalUICondition="1"Permanent="yes"/><!-- Zebar MSI for arm64 architectures. --><MsiPackage- Id="ZebarPackageArm64"- SourceFile="tmp/zebar-*-arm64.msi"- InstallCondition="NativeMachine = 43620"+ Id="Custom_ZebarPackageArm64"+ SourceFile="tmp/zebar-aaa-arm64.msi"+ InstallCondition="(NativeMachine = 43620) AND (Custom_InstallZebar = 1)"bal:DisplayInternalUICondition="1"Permanent="yes"/>