Skip to content

Add macOS support - #30

Open
Kunstderfug wants to merge 1 commit into
AnRkey:mainfrom
Kunstderfug:macos-support
Open

Kunstderfug wants to merge 1 commit into
AnRkey:mainfrom
Kunstderfug:macos-support

Conversation

@Kunstderfug

Copy link
Copy Markdown

Summary

Grok Desktop currently builds and runs on Windows and Linux. This PR adds macOS as a first-class platform without changing the grok.com wrapper, tabs, or usage-stats UI.

Runtime

  • Gate the Linux DISPLAY / /dev/dri GPU probe so macOS and Windows no longer start with hardware acceleration disabled.
  • Restore a standard macOS application menu (About, Edit, View, Window, Quit) so copy/paste and Cmd+Q work. Windows/Linux stay chrome-less.
  • Accept Command shortcuts in addition to Control (Cmd+T / Cmd+R / Cmd+I; Ctrl remains an alias). Tab cycling stays Ctrl+Tab because Cmd+Tab is the system app switcher.
  • Command+scroll on the tab bar cycles tabs, matching Ctrl+scroll.
  • Always-on-top uses Electron setAlwaysOnTop() on macOS (no wmctrl).

Packaging

  • electron-builder mac targets: unsigned dmg + zip, mic/camera usage strings.
  • ./build-macos.sh (and npm run build-mac-app / npm run build-mac) produce Grok Desktop.app.
  • Packages are unsigned (identity: null). First Finder launch may need right-click Open or xattr -cr.

Docs

  • README: macOS requirements, Cmd shortcuts, build/launch instructions.
  • Resolves leftover merge-conflict markers in README.md and .gitignore.

Not in this PR: auto-update, renaming the product, or Info.plist mutation of the unpackaged Electron binary.

Test plan

  • npm start on Apple Silicon: GPU stays enabled, grok.com loads, Cmd+C/V and Cmd+Q work via the app menu.
  • ./build-macos.sh --launch produces and opens build/mac-arm64/Grok Desktop.app.
  • Windows/Linux: chrome-less menu, Ctrl shortcuts, existing AOT/wmctrl path unchanged.
  • Speech/camera: confirm TCC prompts show the new usage strings on a packaged .app.

Run and package on macOS without disabling GPU (the Linux DISPLAY/DRI
probe no longer treats a Mac as headless). Restore a standard application
menu so copy/paste and Quit work, accept Command shortcuts alongside Ctrl,
and add unsigned electron-builder mac targets plus build-macos.sh.

Also resolve leftover merge-conflict markers in README and .gitignore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant