Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: add hint text for installing glazewm + zebar

Lars Berger8675951f5a69
diff --git a/resources/scripts/package.ps1 b/resources/scripts/package.ps1
index c71303da..2139b2fc 100644
--- a/resources/scripts/package.ps1
+++ b/resources/scripts/package.ps1
@@ -50,5 +50,4 @@ foreach ($arch in $wixArchs) {
Write-Output "Creating universal installer"
wix build -arch "x64" -ext WixToolset.BootstrapperApplications.wixext `
-out "./out/installer-universal.exe" "./resources/wix/bundle.wxs" `
- -loc "./resources/wix/bundle-theme.wxl" `
-d VERSION_NUMBER="$VERSION_NUMBER"
diff --git a/resources/wix/bundle-theme.wxl b/resources/wix/bundle-theme.wxl
index 791d6059..7c6f5d23 100644
--- a/resources/wix/bundle-theme.wxl
+++ b/resources/wix/bundle-theme.wxl
@@ -12,6 +12,11 @@
<String Id="InstallMessage" Value="Setup will install [WixBundleName] on your computer. Click Install to continue or Cancel to exit." />
<String Id="InstallMessageOptions" Value="Setup will install [WixBundleName] on your computer. Click Install to continue, Options to set installation options, or Cancel to exit." />
<String Id="InstallVersion" Value="Version [WixBundleVersion]" />
+ <String Id="CustomInstallGlazeWM" Value="Install GlazeWM" />
+ <String Id="CustomInstallGlazeWMHint" Value="&lt;a href=&quot;https://github.com/glzr-io/glazewm&quot;&gt;GlazeWM&lt;/a&gt; is a tiling window manager for Windows." />
+ <String Id="CustomInstallZebar" Value="Install Zebar (recommended)" />
+ <String Id="CustomInstallZebarHint1" Value="&lt;a href=&quot;https://github.com/glzr-io/zebar&quot;&gt;Zebar&lt;/a&gt; is a lightweight tool for custom widgets." />
+ <String Id="CustomInstallZebarHint2" Value="Adds a starter config for showing GlazeWM workspaces." />
<String Id="ConfirmCancelMessage" Value="Are you sure you want to cancel?" />
<String Id="ExecuteUpgradeRelatedBundleMessage" Value="Previous version" />
<String Id="HelpHeader" Value="Setup Help" />
diff --git a/resources/wix/bundle-theme.xml b/resources/wix/bundle-theme.xml
index 232f5314..c37536f7 100644
--- a/resources/wix/bundle-theme.xml
+++ b/resources/wix/bundle-theme.xml
@@ -53,6 +53,23 @@
DisablePrefix="yes"
VisibleCondition="WixStdBAShowVersion"
>#(loc.InstallVersion)</Label>
+ <Checkbox
+ Name="Custom_InstallGlazeWM"
+ X="185"
+ Y="180"
+ Width="-11"
+ Height="17"
+ TabStop="yes"
+ FontId="6"
+ EnableCondition="0=1"
+ >#(loc.CustomInstallGlazeWM)</Checkbox>
+ <Hypertext
+ X="204"
+ Y="200"
+ Width="-11"
+ Height="20"
+ FontId="3"
+ >#(loc.CustomInstallGlazeWMHint)</Hypertext>
<Checkbox
Name="Custom_InstallZebar"
X="185"
@@ -61,7 +78,21 @@
Height="17"
TabStop="yes"
FontId="6"
- >Install Zebar (recommended)</Checkbox>
+ >#(loc.CustomInstallZebar)</Checkbox>
+ <Hypertext
+ X="204"
+ Y="270"
+ Width="-11"
+ Height="20"
+ FontId="3"
+ >#(loc.CustomInstallZebarHint1)</Hypertext>
+ <Label
+ X="204"
+ Y="290"
+ Width="-11"
+ Height="20"
+ FontId="3"
+ >#(loc.CustomInstallZebarHint2)</Label>
<Button
Name="OptionsButton"
X="-171"
diff --git a/resources/wix/bundle.wxs b/resources/wix/bundle.wxs
index 61b780de..d0332d2f 100644
--- a/resources/wix/bundle.wxs
+++ b/resources/wix/bundle.wxs
@@ -14,11 +14,13 @@
LicenseUrl=""
Theme="hyperlinkSidebarLicense"
ThemeFile="resources/wix/bundle-theme.xml"
+ LocalizationFile="resources/wix/bundle-theme.wxl"
SuppressOptionsUI="yes"
ShowVersion="yes" />
</BootstrapperApplication>
- <!-- User input variable for whether to install Zebar. -->
+ <!-- User input variable for whether to install GlazeWM and Zebar. -->
+ <Variable Name="Custom_InstallGlazeWM" Type="numeric" Value="1" bal:Overridable="yes" />
<Variable Name="Custom_InstallZebar" Type="numeric" Value="1" bal:Overridable="yes" />
<Chain>