Skip to content

Add Apple Silicon (arm64) support - #72

Open
PankajGaikar wants to merge 2 commits into
prashantgupta24:masterfrom
PankajGaikar:feat/arm64-support
Open

Add Apple Silicon (arm64) support#72
PankajGaikar wants to merge 2 commits into
prashantgupta24:masterfrom
PankajGaikar:feat/arm64-support

Conversation

@PankajGaikar

@PankajGaikar PankajGaikar commented Jul 13, 2026

Copy link
Copy Markdown

Summary

  • Updated github.com/go-vgo/robotgo from v1.0.0-rc2.1 to v1.0.2 and refreshed related dependencies so the app builds natively on Apple Silicon (arm64)
  • Added Makefile targets for build-arm64, build-amd64, and build-universal (via lipo)
  • Ad-hoc signs amm.app with bundle ID com.pg.amm after each build so macOS Accessibility permissions map to the app bundle instead of Go's default a.out identity
  • Updated CI to run on macos-latest with Go 1.25 and verify arm64 compilation
  • Fixed a Go 1.25 vet issue by using logger.Error(msg) instead of logger.Errorf(msg)

Closes #33

Test plan

  • go test -v ./... passes on Apple Silicon
  • GOOS=darwin GOARCH=arm64 go build -o ./bin/amm-arm64 cmd/main.go compiles successfully
  • file ./bin/amm-arm64 shows Mach-O 64-bit executable arm64
  • make build-arm64 produces a signed native arm64 amm.app (Identifier=com.pg.amm)
  • App starts and tray icon appears on Apple Silicon Mac
  • No "app not optimized for your Mac" warning from macOS
  • Accessibility prompt resolves after re-approving once post-install (required after each unsigned rebuild)

Update robotgo and related dependencies so the app builds and runs natively
on arm64 Macs, add Makefile targets for architecture-specific builds, and
extend CI to verify arm64 compilation.

Fixes prashantgupta24#33
Ad-hoc sign amm.app with com.pg.amm so macOS recognizes the bundle
consistently instead of the default Go a.out identity.
@prashantgupta24

Copy link
Copy Markdown
Owner

Can you try to merge with https://github.com/Resousse/automatic-mouse-mover? That's the most updated fork

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.

Apple Silicon m1 version

2 participants