From 2c3f7bb4f6d98f4e60e3a47f67b74ba19b2e7dc7 Mon Sep 17 00:00:00 2001 From: toorusr <33150948+toorusr@users.noreply.github.com> Date: Sun, 7 Sep 2025 02:16:07 +0200 Subject: [PATCH] add good instructions that mr gold should've added --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index 5b2e434..d8cbfc0 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,55 @@ I'm bad at audio. **Where did the sound effect come from?** LEGO Batman 3: Beyond Gotham. But you knew that already. +**Can I turn off the sound?** + +Yes, never click "Start Audio" in the menu bar item. Weird of you to ask and kind off sad. :( + +## Build and Run (Terminal) + +You can build and launch the app without Xcode’s UI using `xcodebuild`. + +### Prerequisites + +- macOS with Xcode or Xcode Command Line Tools (`xcode-select --install` and maybe `xcodebuild -runFirstLaunch`) +- Optional: GitHub CLI (`gh`) — or use `git clone` instead + +### Clone + +Using GitHub CLI: + +```bash +gh repo clone samhenrigold/LidAngleSensor +cd LidAngleSensor +``` + +Or with Git: + +```bash +git clone https://github.com/samhenrigold/LidAngleSensor.git +cd LidAngleSensor +``` + +### Build (Debug) + +```bash +xcodebuild \ + -project "LidAngleSensor.xcodeproj" \ + -scheme "LidAngleSensor" \ + -configuration Debug \ + -derivedDataPath build \ + CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" DEVELOPMENT_TEAM="" \ + -arch arm64 +``` + +Notes: +- On Apple Silicon, `-arch arm64` is correct. On Intel Macs, you can use `-arch x86_64` or omit `-arch`. Intel macs don't have the feature tho, so it won't be very useful. +- Disabling code signing is fine for local debug builds if you are not mr. gold. + +### Run + +```bash +open build/Build/Products/Debug/LidAngleSensor.app +``` + +If you built a Release configuration, adjust the path accordingly (replace `Debug` with `Release`).