GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: add additional embed metadata; rename `.exe` binaries
Lars Berger52b1c3bd30f6
diff --git a/packages/watcher/Cargo.toml b/packages/watcher/Cargo.tomlindex dd5bd356..d8d8731d 100644--- a/packages/watcher/Cargo.toml+++ b/packages/watcher/Cargo.toml@@ -4,7 +4,7 @@ version = "0.0.0"edition = "2021"[[bin]]-name = "watcher"+name = "glazewm-watcher"path = "src/main.rs"[build-dependencies]diff --git a/packages/watcher/build.rs b/packages/watcher/build.rsindex 4cd1b088..dc077d26 100644--- a/packages/watcher/build.rs+++ b/packages/watcher/build.rs@@ -1,5 +1,16 @@fn main() {let mut res = tauri_winres::WindowsResource::new();+res.set_icon("../../resources/icon.ico");++ // Set language to English (US).+ res.set_language(0x0409);++ res.set("OriginalFilename", "glazewm-watcher.exe");+ res.set("ProductName", "GlazeWM Watcher");+ res.set("FileDescription", "GlazeWM Watcher");+ res.set("FileVersion", "0.0.0");+ res.set("ProductVersion", "0.0.0");+res.compile().unwrap();}diff --git a/packages/wm/Cargo.toml b/packages/wm/Cargo.tomlindex 4ccd8a30..c38ca084 100644--- a/packages/wm/Cargo.toml+++ b/packages/wm/Cargo.toml@@ -5,13 +5,13 @@ description = "GlazeWM is a tiling window manager for Windows inspired by i3 andrepository = "https://github.com/glzr-io/glazewm"license = "GPL-3"edition = "2021"-default-run = "wm"+default-run = "glazewm"[lib]path = "src\\lib.rs"[[bin]]-name = "wm"+name = "glazewm"path = "src\\main.rs"[features]diff --git a/packages/wm/build.rs b/packages/wm/build.rsindex 70d031e6..779a6155 100644--- a/packages/wm/build.rs+++ b/packages/wm/build.rs@@ -1,6 +1,5 @@fn main() {let mut res = tauri_winres::WindowsResource::new();- res.set_icon("../../resources/icon.ico");// When the `ui_access` feature is enabled, the `uiAccess` attribute is// set to `true`. UIAccess is disabled by default because it requires the@@ -52,5 +51,16 @@ fn main() {);res.set_manifest(&manifest_str);+ res.set_icon("../../resources/icon.ico");++ // Set language to English (US).+ res.set_language(0x0409);++ res.set("OriginalFilename", "glazewm.exe");+ res.set("ProductName", "GlazeWM");+ res.set("FileDescription", "GlazeWM");+ res.set("FileVersion", "0.0.0");+ res.set("ProductVersion", "0.0.0");+res.compile().unwrap();}diff --git a/packages/wm/src/main.rs b/packages/wm/src/main.rsindex eb9b73ee..7261cd8e 100644--- a/packages/wm/src/main.rs+++ b/packages/wm/src/main.rs@@ -246,7 +246,7 @@ fn start_watcher_process() -> anyhow::Result<tokio::process::Child, Error>let watcher_path = env::current_exe()?.parent().context("Failed to resolve path to the watcher process.")?- .join("watcher");+ .join("glazewm-watcher");Command::new(&watcher_path).spawn()diff --git a/resources/scripts/package.ps1 b/resources/scripts/package.ps1index 67ed567a..51ab2a26 100644--- a/resources/scripts/package.ps1+++ b/resources/scripts/package.ps1@@ -18,19 +18,19 @@ $latestInstallers | % { Invoke-WebRequest $_.browser_download_url -OutFile (Join$rustTargets = @("x86_64-pc-windows-msvc", "aarch64-pc-windows-msvc")foreach ($target in $rustTargets) {- $outDir = if ($target -eq "x86_64-pc-windows-msvc") { "x64" } else { "arm64" }+ $outDir = if ($target -eq "x86_64-pc-windows-msvc") { "out/x64" } else { "out/arm64" }$sourceDir = "target/$target/release"Write-Output "Creating output directories for executables"- New-Item -ItemType Directory -Force -Path "out/$outDir/noconsole", "out/$outDir/console"+ New-Item -ItemType Directory -Force -Path "$outDir/noconsole", "$outDir/console"Write-Output "Building for $target (windows subsystem)"cargo build --locked --release --target $target --features no_console,ui_access- Move-Item -Path "$sourceDir/wm.exe", "$sourceDir/watcher.exe" -Destination "out/$outDir/noconsole"+ Move-Item -Path "$sourceDir/glazewm.exe", "$sourceDir/glazewm-watcher.exe" -Destination "$outDir/noconsole"Write-Output "Building for $target (console subsystem)"cargo build --locked --release --target $target --features ui_access- Move-Item -Path "$sourceDir/wm.exe", "$sourceDir/watcher.exe" -Destination "out/$outDir/console"+ Move-Item -Path "$sourceDir/glazewm.exe", "$sourceDir/glazewm-watcher.exe" -Destination "$outDir/console"}# WiX architectures to create installers for (x64 and arm64).