GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: add custom theme file for wix burn bundle
Lars Berger9e5ae6cdd354
diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yamlindex d814c0b0..f1e98726 100644--- a/.github/workflows/package.yaml+++ b/.github/workflows/package.yaml@@ -41,21 +41,21 @@ jobs:VERSION_NUMBER: ${{ needs.next-version.outputs.new-release-version }}run: |wix build -arch "x64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./tmp/installer-x64.msi" "./resources/standalone.wxs"+ -out "./tmp/installer-x64.msi" "./resources/wix/standalone.wxs"- name: Create MSI installer (arm64)env:VERSION_NUMBER: ${{ needs.next-version.outputs.new-release-version }}run: |wix build -arch "arm64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./tmp/installer-arm64.msi" "./resources/standalone.wxs"+ -out "./tmp/installer-arm64.msi" "./resources/wix/standalone.wxs"- name: Create universal installerenv:VERSION_NUMBER: ${{ needs.next-version.outputs.new-release-version }}run: |wix build -arch "x64" -ext WixToolset.BootstrapperApplications.wixext \- -out "./tmp/installer-universal.exe" "./resources/bundle.wxs"+ -out "./tmp/installer-universal.exe" "./resources/wix/bundle.wxs"- uses: actions/upload-artifact@v4with:diff --git a/resources/wix/bundle-theme.xml b/resources/wix/bundle-theme.xmlnew file mode 100644index 00000000..c7571a81--- /dev/null+++ b/resources/wix/bundle-theme.xml@@ -0,0 +1,268 @@+<?xml version="1.0" encoding="utf-8" ?>+<!--+ This is a modification of `HyperlinkSidebarTheme.xml`.+ Ref: https://github.com/wixtoolset/wix/blob/v5.0.0/src/ext/Bal/stdbas/Resources/HyperlinkSidebarTheme.xml+-->+<Theme xmlns="http://wixtoolset.org/schemas/v4/thmutil">+ <Font Id="0" Height="-12" Weight="500" Foreground="windowtext" Background="window">Segoe UI</Font>+ <Font Id="1" Height="-24" Weight="500" Foreground="windowtext">Segoe UI</Font>+ <Font Id="2" Height="-22" Weight="500" Foreground="graytext">Segoe UI</Font>+ <Font Id="3" Height="-12" Weight="500" Foreground="windowtext" Background="window">Segoe UI</Font>++ <Font Id="4" Height="-12" Weight="500" Foreground="ff0000" Background="window" Underline="yes">Segoe UI</Font>+ <Font Id="5" Height="-28" Weight="500" Foreground="graytext">Segoe UI</Font>+ <Font Id="6" Height="-12" Weight="600" Foreground="windowtext" Background="window">Segoe UI</Font>++ <!-- Divider -->+ <Font Id="7" Height="-24" Weight="500" Foreground="windowtext" Background="E0E0E0">Segoe UI</Font>++ <Window Width="600" Height="450" HexStyle="100a0000" FontId="0" Caption="#(loc.Caption)">+ <Label X="11" Y="-45" Width="-11" Height="2" FontId="7" Visible="yes" />+ <Page Name="Help">+ <Label X="80" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>+ <ImageControl X="11" Y="11" Width="206" Height="64" ImageFile="logo.png" />+ <Label X="11" Y="80" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.HelpHeader)</Label>+ <Label X="11" Y="121" Width="-11" Height="-35" FontId="3" DisablePrefix="yes">#(loc.HelpText)</Label>+ <Button Name="HelpCloseButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.HelpCloseButton)</Text>+ <CloseWindowAction />+ </Button>+ </Page>++ <Page Name="Install">+ <ImageControl X="11" Y="11" Width="165" Height="400" ImageFile="logoside.png" />+ <Label X="185" Y="11" Width="-11" Height="40" FontId="5" DisablePrefix="yes">#(loc.InstallHeader)</Label>+ <Label X="185" Y="82" Width="-11" Height="160" FontId="3" DisablePrefix="yes">#(loc.InstallMessage)</Label>+ <Hypertext+ Name="EulaHyperlink"+ X="185"+ Y="-111"+ Width="-11"+ Height="17"+ TabStop="yes"+ FontId="3"+ HideWhenDisabled="yes"+ >#(loc.InstallLicenseLinkText)</Hypertext>+ <Label+ Name="InstallVersion"+ X="185"+ Y="-81"+ Width="-11"+ Height="17"+ FontId="3"+ DisablePrefix="yes"+ VisibleCondition="WixStdBAShowVersion"+ >#(loc.InstallVersion)</Label>+ <Checkbox+ Name="WSLCheckbox"+ X="185"+ Y="250"+ Width="-11"+ Height="17"+ TabStop="yes"+ FontId="6"+ HideWhenDisabled="yes"+ >Install WSL if not present</Checkbox>+ <Button+ Name="OptionsButton"+ X="-171"+ Y="-11"+ Width="75"+ Height="23"+ TabStop="yes"+ FontId="0"+ VisibleCondition="NOT WixStdBASuppressOptionsUI"+ >+ <Text>#(loc.InstallOptionsButton)</Text>+ <ChangePageAction Page="Options" />+ </Button>+ <Button Name="InstallButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ #(loc.InstallInstallButton)</Button>+ <Button Name="InstallCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.InstallCancelButton)</Text>+ <CloseWindowAction />+ </Button>+ </Page>++ <Page Name="Options">+ <ImageControl X="11" Y="11" Width="206" Height="64" ImageFile="logo.png" />+ <Label X="11" Y="80" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsHeader)</Label>+ <Label X="11" Y="121" Width="-11" Height="17" FontId="3">#(loc.OptionsLocationLabel)</Label>+ <Editbox+ Name="InstallFolder"+ X="11"+ Y="143"+ Width="-91"+ Height="21"+ TabStop="yes"+ FontId="3"+ FileSystemAutoComplete="yes"+ />+ <Button Name="BrowseButton" X="-11" Y="142" Width="75" Height="23" TabStop="yes" FontId="3">+ <Text>#(loc.OptionsBrowseButton)</Text>+ <BrowseDirectoryAction VariableName="InstallFolder" />+ </Button>+ <Button Name="OptionsOkButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.OptionsOkButton)</Text>+ <ChangePageAction Page="Install" />+ </Button>+ <Button Name="OptionsCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.OptionsCancelButton)</Text>+ <ChangePageAction Page="Install" Cancel="yes" />+ </Button>+ </Page>++ <Page Name="Progress">+ <ImageControl X="11" Y="11" Width="206" Height="64" ImageFile="logo.png" />+ <Label X="11" Y="80" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.ProgressHeader)</Label>+ <Label X="11" Y="141" Width="70" Height="17" FontId="3" DisablePrefix="yes">#(loc.ProgressLabel)</Label>+ <Label+ Name="OverallProgressPackageText"+ X="85"+ Y="141"+ Width="-11"+ Height="17"+ FontId="3"+ DisablePrefix="yes"+ >#(loc.OverallProgressPackageText)</Label>+ <Progressbar Name="OverallCalculatedProgressbar" X="11" Y="163" Width="-11" Height="20" />+ <Button+ Name="ProgressCancelButton"+ X="-11"+ Y="-11"+ Width="75"+ Height="23"+ TabStop="yes"+ FontId="0"+ >#(loc.ProgressCancelButton)</Button>+ </Page>+ <Page Name="Modify">+ <Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>+ <ImageControl X="11" Y="11" Width="165" Height="400" ImageFile="logoside.png" />+ <Label X="185" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.ModifyHeader)</Label>+ <Button+ Name="RepairButton"+ X="-171"+ Y="-11"+ Width="75"+ Height="23"+ TabStop="yes"+ FontId="0"+ HideWhenDisabled="yes"+ >#(loc.ModifyRepairButton)</Button>+ <Button+ Name="UninstallButton"+ X="-91"+ Y="-11"+ Width="75"+ Height="23"+ TabStop="yes"+ FontId="0"+ >#(loc.ModifyUninstallButton)</Button>+ <Button Name="ModifyCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.ModifyCancelButton)</Text>+ <CloseWindowAction />+ </Button>+ </Page>++ <Page Name="Success">+ <Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>+ <ImageControl X="11" Y="11" Width="165" Height="400" ImageFile="logoside.png" />+ <Label X="185" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">+ <Text>#(loc.SuccessHeader)</Text>+ <Text Condition="WixBundleAction = 4">#(loc.SuccessUninstallHeader)</Text>+ <Text Condition="WixBundleAction = 6">#(loc.SuccessInstallHeader)</Text>+ <Text Condition="WixBundleAction = 8">#(loc.SuccessRepairHeader)</Text>+ </Label>+ <Button+ Name="LaunchButton"+ X="-91"+ Y="-11"+ Width="125"+ Height="23"+ TabStop="yes"+ FontId="0"+ HideWhenDisabled="yes"+ >#(loc.SuccessLaunchButton)</Button>+ <Label+ X="185"+ Y="-51"+ Width="400"+ Height="34"+ FontId="3"+ DisablePrefix="yes"+ VisibleCondition="WixStdBARestartRequired"+ >+ <Text>#(loc.SuccessRestartText)</Text>+ <Text Condition="WixBundleAction = 3">#(loc.SuccessUninstallRestartText)</Text>+ </Label>+ <Button+ Name="SuccessRestartButton"+ X="-91"+ Y="-11"+ Width="75"+ Height="23"+ TabStop="yes"+ FontId="0"+ HideWhenDisabled="yes"+ >#(loc.SuccessRestartButton)</Button>+ <Button Name="SuccessCloseButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.SuccessCloseButton)</Text>+ <CloseWindowAction />+ </Button>+ </Page>++ <Page Name="Failure">+ <ImageControl X="11" Y="11" Width="165" Height="400" ImageFile="logoside.png" />+ <Label X="185" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">+ <Text>#(loc.FailureHeader)</Text>+ <Text Condition="WixBundleAction = 4">#(loc.FailureUninstallHeader)</Text>+ <Text Condition="WixBundleAction = 6">#(loc.FailureInstallHeader)</Text>+ <Text Condition="WixBundleAction = 8">#(loc.FailureRepairHeader)</Text>+ </Label>+ <Hypertext+ Name="FailureLogFileLink"+ X="185"+ Y="121"+ Width="-11"+ Height="68"+ FontId="3"+ TabStop="yes"+ HideWhenDisabled="yes"+ >#(loc.FailureHyperlinkLogText)</Hypertext>+ <Hypertext+ Name="FailureMessageText"+ X="185"+ Y="-115"+ Width="-11"+ Height="80"+ FontId="3"+ TabStop="yes"+ HideWhenDisabled="yes"+ />+ <Label+ X="185"+ Y="-57"+ Width="-11"+ Height="80"+ FontId="3"+ DisablePrefix="yes"+ VisibleCondition="WixStdBARestartRequired"+ >#(loc.FailureRestartText)</Label>+ <Button+ Name="FailureRestartButton"+ X="-91"+ Y="-11"+ Width="75"+ Height="23"+ TabStop="yes"+ FontId="0"+ HideWhenDisabled="yes"+ >#(loc.FailureRestartButton)</Button>+ <Button Name="FailureCloseButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">+ <Text>#(loc.FailureCloseButton)</Text>+ <CloseWindowAction />+ </Button>+ </Page>+ </Window>+</Theme>diff --git a/resources/wix/bundle.wxs b/resources/wix/bundle.wxsindex 91e1dc41..252a4147 100644--- a/resources/wix/bundle.wxs+++ b/resources/wix/bundle.wxs@@ -2,20 +2,24 @@xmlns="http://wixtoolset.org/schemas/v4/wxs"xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">- <Bundle Name="GlazeWM" Version="$(env.VERSION_NUMBER)" Manufacturer="glzr.io"- UpgradeCode="ef0f849b-d90d-4647-bb26-730c6fce5f9e"+ <Bundle Name="GlazeWM" Version="$(env.VERSION_NUMBER)"+ UpgradeCode="f57adff3-4521-4a6b-87b1-d34a7d9bae1e"+ Manufacturer="Glzr Software Pte. Ltd."DisableModify="yes"+ DisableRemove="yes"IconSourceFile="resources/icon.ico"><BootstrapperApplication><bal:WixStandardBootstrapperApplicationLicenseUrl=""- Theme="hyperlinkLicense"- SuppressOptionsUI="yes" />+ Theme="HyperlinkSidebarLicense"+ ThemeFile="resources/wix/bundle-theme.xml"+ SuppressOptionsUI="yes"+ ShowVersion="yes" /></BootstrapperApplication><Chain>- <!-- GlazeWM MSI for an x64 architecture. -->+ <!-- GlazeWM MSI for x64 architectures. --><MsiPackageId="GlazeWMPackageX64"SourceFile="tmp/installer-x64.msi"@@ -24,7 +28,7 @@Permanent="yes"/>- <!-- GlazeWM MSI for an arm64 architecture. -->+ <!-- GlazeWM MSI for arm64 architectures. --><MsiPackageId="GlazeWMPackageArm64"SourceFile="tmp/installer-arm64.msi"@@ -33,7 +37,7 @@Permanent="yes"/>- <!-- Zebar MSI for an x64 architecture. -->+ <!-- Zebar MSI for x64 architectures. --><MsiPackageId="ZebarPackageX64"SourceFile="tmp/zebar-*-x64.msi"@@ -42,7 +46,7 @@Permanent="yes"/>- <!-- Zebar MSI for an arm64 architecture. -->+ <!-- Zebar MSI for arm64 architectures. --><MsiPackageId="ZebarPackageArm64"SourceFile="tmp/zebar-*-arm64.msi"