Skip to content

Commit

Permalink
fix: update rofi version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth committed Apr 18, 2024
1 parent a27dd2d commit 289c249
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ PLUGIN_PATH := join(PLUGINS_DIR, PLUGIN_NAME)
# See https://github.com/SabrinaJewson/rofi-mode.rs/issues/8#event-11112343153
# Examples of version outputs
# rofi: Version: 1.7.5
# rofi(wayland): Version: 1.7.5+wayland2
# rofi-git: Version: 1.7.5-187-gb43a82f8 (makepkg)
# rofi-lbonn-wayland-git: Version: 1.7.5+wayland2-154-g36621af0 (makepkg)
RUSTFLAGS := if `rofi -version` == "Version: 1.7.5" { "" } else { "--cfg rofi_next" }
RUSTFLAGS := if `rofi -version` =~ '^Version: 1\.7\.5(?:\+wayland2)?$' { "" } else { "--cfg rofi_next" }

# COMMANDS -----------------------------------------------------------------------------------------
# List commands
Expand Down

0 comments on commit 289c249

Please sign in to comment.