Installation
Spank can be installed by downloading a pre-built binary or building from source.System requirements
Before installing, verify your system meets these requirements:- Operating system: macOS on Apple Silicon
- Chip: M2 or newer (M2, M3, M4, etc.)
- Permissions: sudo access for IOKit HID
- Architecture: arm64
Method 1: Download binary release
The fastest way to get started is to download a pre-built binary from GitHub releases.Download the latest release
Visit the latest release page and download the binary for macOS ARM64.
Method 2: Build from source
Build Spank from source if you want the latest development version or need to modify the code.Building from source requires Go 1.26 or later.
Install using go install
$GOPATH/bin (typically ~/go/bin).Alternative: Clone and build manually
For development or customization:Verify installation
Test that Spank is correctly installed and has the necessary permissions:Troubleshooting
Permission denied error
Permission denied error
Spank requires root privileges for accelerometer access. Make sure you’re running with From main.go:208-210, the check is:
sudo:Unsupported hardware
Unsupported hardware
Spank requires Apple Silicon M2 or newer. M1 chips use a different accelerometer sensor and are not currently supported.Verify your chip:
go: command not found
go: command not found
If building from source, you need Go installed. Download it from go.dev/dl or install via Homebrew:
Binary architecture mismatch
Binary architecture mismatch
Ensure you downloaded the ARM64 binary, not x86_64. Check with:Should output:
Mach-O 64-bit executable arm64Next steps
Quickstart
Learn how to use Spank’s different modes and customize sensitivity