Gcenx / macOS_Wine_builds

Official Winehq macOS Packages
461 stars 23 forks source link

Apple M1: Bad CPU type in executable #24

Closed brandonros closed 2 years ago

brandonros commented 2 years ago

How am I supposed to use this with Apple M1?

Last login: Thu Aug 26 14:33:27 on ttys002
Brandons-MacBook-Air:~ brandonros 2021-08-26 14:33:56 $ test "$?BASH_VERSION" = "0" || eval 'setenv() { export "$1=$2"; }';                setenv PATH "/private/var/folders/tm/pr_5s3p502j0k7_96d2chmzc0000gn/T/AppTranslocation/9580D39A-E68A-4E7C-909F-0065AC59A01C/d/Wine Devel.app/Contents/Resources/start/bin:/private/var/folders/tm/pr_5s3p502j0k7_96d2chmzc0000gn/T/AppTranslocation/9580D39A-E68A-4E7C-909F-0065AC59A01C/d/Wine Devel.app/Contents/Resources/wine/bin:$PATH"; winehelp --clear

 ################################################################################
#                           Wine Is Not an Emulator                            #
################################################################################

/private/var/folders/tm/pr_5s3p502j0k7_96d2chmzc0000gn/T/AppTranslocation/9580D39A-E68A-4E7C-909F-0065AC59A01C/d/Wine Devel.app/Contents/Resources/start/bin/winehelp: line 41: /private/var/folders/tm/pr_5s3p502j0k7_96d2chmzc0000gn/T/AppTranslocation/9580D39A-E68A-4E7C-909F-0065AC59A01C/d/Wine Devel.app/Contents/Resources/wine/bin/wine: Bad CPU type in executable
 Welcome to .

 In order to start a program:
   .exe: wine program.exe
   .msi: wine msiexec /i program.msi

 If you want to configure wine:
   wine winecfg

 To get information about app compatibility:
   appdb Program Name

Brandons-MacBook-Air:~ brandonros 2021-08-26 14:33:56 $ /Users/brandonros/Downloads/Wine\ Devel.app/Contents/Resources/wine/bin/wine 
-bash: /Users/brandonros/Downloads/Wine Devel.app/Contents/Resources/wine/bin/wine: Bad CPU type in executable
Brandons-MacBook-Air:~ brandonros 2021-08-26 14:34:22 $ 
Gcenx commented 2 years ago

I do explain this in the release noted but seems I didn’t add that information to the readme.

Apple Silicon support?

Only wine64 will function via Rosetta2

Upstream is working on implementing everything needed to allow running 32Bit wine on a 64Bit only OS, not entirely sure on that timeline but maybe sometime around Wine-7.0 if we’re lucky.

brandonros commented 2 years ago

/Users/brandonros/Downloads/Wine\ Devel.app/Contents/Resources/wine/bin/wine64

I see, that's what I had to do. Maybe you can make it so when the user double clicks Wine Devel.app it automatically does wine64 if it knows it is APple M1?

Thank you for all of your work on this awesome project.

Gcenx commented 2 years ago

I could have sworn I’d edited the winehelp to display wine64 for these cases, maybe that was only applied to my last Wineskin wrapper bump and forgotten to update the wine bundle template.