Creating a macOS executable
The generic download does not contain a native executable for macOS. Using "Automator", you can create your own executable by following these steps:
- Open Automator (in the Applications folder) and select File/New from the menu.
- Select 'Application' as the type of document and click on 'Choose'.
- Under "Library" on the left, select "Utilities".
- Look for the "Run Shell Script" task and drag it into the open area on the right.
- At the bottom of the task select "Options" the check "Ignore this action's input"
- Cut and paste the following into text area:
cd "/Applications/SQL Workbench" r=$(java \ --add-opens java.desktop/com.apple.laf=ALL-UNNAMED \ -cp "sqlworkbench.jar:ext/*" \ -Dawt.useSystemAAFontSettings=on \ -Dapple.awt.showGrowBoxtrue=true \ -Dapple.laf.useScreenMenuBar=true \ -Xmx4096m \ -Xdock:name=SQLWorkbench/J \ workbench.WbStarter 2>&1) $r
- You have to adjust the installation path on the first line of the script to match your installation location.
- Press Cmd-S (or select File/Save from the menu) and save the app in the Applications folder.
- Close Automator
- By default, Automator saves every app with its own icon. If you want to set an Icon to more easily identify the app then
- Right click on the app and select 'Get Info'
- Drag and drop Workbench.icns (or your own icon) over the icon at the top left corner of the info screen.
- Close the info screen.
- You will have to repeat this if you save the app with Automator again.
- You can drag the newly created app to the Dock for easy access.