GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
refactor: rename `windows_subsystem` feature -> `no_console`
Lars Bergerd4cc08f1103e
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yamlindex 2354f5b8..56e0fc5f 100644--- a/.github/workflows/build.yaml+++ b/.github/workflows/build.yaml@@ -34,13 +34,15 @@ jobs:- name: Build with windows subsystemrun: |- cargo build --locked --release --target ${{ matrix.rust-target }} --features windows_subsystem+ cargo build --locked --release --target ${{ matrix.rust-target }} --features no_consolemv target/${{ matrix.rust-target }}/release/wm.exe tmp/wm-noconsole.exe+ mv target/${{ matrix.rust-target }}/release/watcher.exe tmp/watcher-noconsole.exe- name: Build with console subsystemrun: |cargo build --locked --release --target ${{ matrix.rust-target }}mv target/${{ matrix.rust-target }}/release/wm.exe tmp/wm-console.exe+ mv target/${{ matrix.rust-target }}/release/watcher.exe tmp/watcher-console.exe- name: Install WiXrun: dotnet tool install --global wix --version 5.0.0@@ -49,10 +51,10 @@ jobs:run: |wix extension add WixToolset.UI.wixext/5 WixToolset.Util.wixext/5wix build -arch ${{ matrix.wix-target }} -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./installer.msi" "./resources/main.wxs"+ -out "./tmp/installer.msi" "./resources/main.wxs"- uses: actions/upload-artifact@v4with:- name: bundle-${{ matrix.rust-target }}+ name: installer-${{ matrix.rust-target }}if-no-files-found: error- path: tmp+ path: tmp/installer.msidiff --git a/packages/wm/Cargo.toml b/packages/wm/Cargo.tomlindex 3c2b1276..c179a886 100644--- a/packages/wm/Cargo.toml+++ b/packages/wm/Cargo.toml@@ -15,7 +15,7 @@ name = "wm"path = "src\\main.rs"[features]-windows_subsystem = []+no_console = [][build-dependencies]embed-resource = "2"diff --git a/packages/wm/src/main.rs b/packages/wm/src/main.rsindex 31bddad2..eb9b73ee 100644--- a/packages/wm/src/main.rs+++ b/packages/wm/src/main.rs@@ -1,7 +1,7 @@// Conditionally build the application with either a `windows` or `console`// subsystem (default is `console`). This determines whether a console// window is spawned on launch, if not already ran through a console.-#![cfg_attr(feature = "windows_subsystem", windows_subsystem = "windows")]+#![cfg_attr(feature = "no_console", windows_subsystem = "windows")]#![feature(iterator_try_collect)]#![feature(once_cell_try)]