File tree 2 files changed +8
-15
lines changed
2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ import {
45
45
isWindows ,
46
46
publicDir ,
47
47
isMac ,
48
- configStore
48
+ configStore ,
49
+ isIntelMac
49
50
} from './constants'
50
51
import {
51
52
logChangedSetting ,
@@ -743,15 +744,7 @@ export const spawnAsync = async (
743
744
}
744
745
745
746
export async function checkRosettaInstall ( ) {
746
- if ( ! isMac ) {
747
- return
748
- }
749
-
750
- // check if on arm64 macOS
751
- const { stdout : archCheck } = await execAsync ( 'arch' )
752
- const isArm64 = archCheck . trim ( ) === 'arm64'
753
-
754
- if ( ! isArm64 ) {
747
+ if ( isIntelMac ) {
755
748
return
756
749
}
757
750
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ export async function initializeCompatibilityLayer() {
598
598
initializationTasks . push ( downloadDefaultWine ( ) )
599
599
}
600
600
601
- if ( isMac || isLinux ) {
601
+ if ( ! isWindows ) {
602
602
if ( isMac ) {
603
603
initializationTasks . push ( checkRosettaInstall ( ) )
604
604
}
@@ -626,7 +626,6 @@ export async function downloadDefaultWine() {
626
626
627
627
// use Proton-GE type if on Linux and GPTK or Wine-Crossover if on Mac
628
628
const isMacOSUpToDate = await isMacSonomaOrHigher ( )
629
- const isGPTKCompatible = isMac ? isMacOSUpToDate && ! isIntelMac : false
630
629
631
630
const results = await Promise . all (
632
631
availableWine . map ( async ( version ) => {
@@ -635,9 +634,10 @@ export async function downloadDefaultWine() {
635
634
}
636
635
637
636
if ( isMac ) {
638
- return isGPTKCompatible
639
- ? version . type === 'Game-Porting-Toolkit'
640
- : version . type === 'Wine-Crossover'
637
+ if ( isMacOSUpToDate && ! isIntelMac ) {
638
+ return version . type === 'Game-Porting-Toolkit'
639
+ }
640
+ return version . type === 'Wine-Crossover'
641
641
}
642
642
return false
643
643
} )
You can’t perform that action at this time.
0 commit comments