Skip to content

Commit 582fdae

Browse files
Fix macOS build
1 parent 7ecbdfd commit 582fdae

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src-tauri/src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,12 @@ async fn prep_launch(
693693
std::fs::create_dir_all(&compat_data_dir)?;
694694
}
695695

696-
if !protontools::is_device_steam_deck() {
697-
// we want to let Proton set this itself on Deck
698-
cmd.env("WINEPREFIX", compat_data_dir.to_string_lossy().to_string());
696+
#[cfg(target_os = "linux")]
697+
{
698+
if !protontools::is_device_steam_deck() {
699+
// we want to let Proton set this itself on Deck
700+
cmd.env("WINEPREFIX", compat_data_dir.to_string_lossy().to_string());
701+
}
699702
}
700703
}
701704

0 commit comments

Comments
 (0)