Remove macos wine support (it doesn't quite work)
This commit is contained in:
@@ -175,7 +175,7 @@ fn launch_game(app: AppHandle, name: String, executable: String, wine: bool) {
|
||||
.show(|_| {});
|
||||
return;
|
||||
}
|
||||
let result = if wine && (platform() == "linux" || platform() == "macos") {
|
||||
let result = if wine && platform() == "linux" {
|
||||
let wine_path_output = Command::new("which").arg("wine").output();
|
||||
let wine_path = match wine_path_output {
|
||||
Ok(output) if output.status.success() => {
|
||||
|
||||
@@ -178,7 +178,7 @@ function App () {
|
||||
|
||||
newDownloads.forEach(download => {
|
||||
let plat = p
|
||||
if ((p === 'macos' || p === 'linux') && useWine) {
|
||||
if (p === 'linux' && useWine) {
|
||||
if (
|
||||
!download.version.platforms.includes(p) &&
|
||||
download.version.platforms.includes('windows')
|
||||
|
||||
@@ -69,9 +69,7 @@ export default function Settings ({ normalConfig }: SettingsProps) {
|
||||
break
|
||||
}
|
||||
}}
|
||||
className={
|
||||
platform() == 'linux' || platform() == 'macos' ? '' : 'hidden'
|
||||
}
|
||||
className={platform() == 'linux' ? '' : 'hidden'}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user