HowTo: Install WinBox64 on macOS

https://www.youtube.com/watch?v=kCMmyk9wvso

Required Downloads
https://www.mikrotik.com/download
https://www.xquartz.org * No longer needed with newer versions of WinBottler *
https://winebottler.kronenberg.org/downloads

Download WinBox EXE from MikroTik
Download & Install XQuartz
Download & Install Winebottler

Run WineBottler
Choose Advanced at top to create prefix
Navigate to winbox.exe downloaded file and select it
Choose Copy file to App Bundle
Deselect Include Mono & Gecko
Hit Install
Give WinBox a name

Drag WinBox to your Applications Folder
Optionally add to dock

See video for 64bit fix

#find wine, try in Bundle, ~/Applications, /Applications, Spotlight
if [ -f "$BUNDLERESOURCEPATH/Wine.bundle/Contents/Resources/bin/wine64" ]; then
    export WINEUSRPATH="$BUNDLERESOURCEPATH/Wine.bundle/Contents/Resources"
elif [ -f "$HOME/Applications/Wine.app/Contents/Resources/bin/wine64" ]; then
    export WINEUSRPATH="$HOME/Applications/Wine.app/Contents/Resources"
elif [ -f "/Applications/Wine.app/Contents/Resources/bin/wine64" ]; then
    export WINEUSRPATH="/Applications/Wine.app/Contents/Resources"
elif [ -f "$(mdfind 'kMDItemCFBundleIdentifier == org.kronenberg.Wine' | grep -m 1 'Wine.app')/Contents/Resources/bin/wine64" ]; then
    export WINEUSRPATH="$(mdfind 'kMDItemCFBundleIdentifier == org.kronenberg.Wine' | grep -m 1 'Wine.app')/Contents/Resources"
else
    echo "Wine not found!"
    exit 1
fi



export WINEARCH=win64

Why complicate things?

  1. install https://dl.winehq.org/wine-builds/macosx/pool/winehq-staging-4.18.pkg
  2. launch wine64 /Applications/winbox64.exe

This method retains the icon and creates a .app file for you.

As well this way doesn’t have the addresses.wbx import bug.

I believe the 64 bit edits are because of a bug. So normally you wouldn’t have to do that. Might eventually get fixed. Otherwise it would be a Next, Next, click based install.

File permission bug is fixed in newer wine (linked above). Address import now works.

Quick correction. You don’t need to install Xquartz anymore. Not sure when WinBottler stopped needing. Just old habit from when I first did it many years ago.

It might be needed for certain applications as Wine still suggests it as an optional install it on their website. But for WinBox it’s not needed.
https://wiki.winehq.org/MacOS/Building#XQuartz

I tried to follow this tutorial.
Ended up with the following error:

###BOTTLING### Create .app...
###BOTTLING### Enabling CoreAudio, Colors, Antialiasing  and flat menus...
### LOG ### Command '/Applications/Wine.app/Contents/Resources/bin/wine64 regedit /tmp/reg.reg' returned status 137.



Task returned with status 1.

FYI Wine 4.19 and 4.20 breaks on Catalina again.
Downgrade to 4.18