chore: add Makefile for build/install/run workflow#140
Conversation
|
Would it be ok to put the Makefile in the "App" directory? |
99cf3a6 to
32f9b3a
Compare
|
Done — pushed a split layout:
If you'd rather have a single file (no delegator) at either location, happy to flatten — just say the word. |
|
The word :) The Makefile only relates to the App no? |
Adds a Makefile next to InjectionNext.xcodeproj (App/Makefile) with all dev-loop targets. Run from App/ (or `make -C App <target>` from the repo root). Targets: - build-app — builds InjectionNext.app (Debug) via xcodebuild with ad-hoc signing. - run — build, install to /Applications, launch. - open / move-app — install + launch. - kill — terminate any running InjectionNext (used before build/ install to avoid code-sign/launch races). - sync — git pull + submodule update (DLKit, InjectionLite). - clean — remove derived data. No source changes.
32f9b3a to
af1e234
Compare
|
Flattened — single Usage:
Single commit, 64-line diff — down from the delegator variant. Ready for another look. |
There was a problem hiding this comment.
Pull request overview
Adds a developer-focused Makefile under App/ to streamline building, installing, and running the InjectionNext macOS app from the command line.
Changes:
- Introduces
build-apptarget that buildsInjectionNext.appviaxcodebuildinto a local derived data directory. - Adds install/launch workflow targets (
move-app,open,run) plus convenience targets (kill,sync,clean,help).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @echo "==> Opening $(APP_PATH)..." | ||
| @open /Applications/InjectionNext.app | ||
|
|
||
| run: build-app open |
| -quiet | ||
| @echo "==> Build complete: $(APP_PATH)" | ||
|
|
||
| move-app: build-app kill |
| @echo "==> Opening $(APP_PATH)..." | ||
| @open /Applications/InjectionNext.app |
|
Man, these AI reviews really are know-it-alls. |
Summary
Adds a top-level
Makefileto streamline local development of the macOS app on the2.0_overhaulbranch.Targets:
build-app– buildsInjectionNext.app(Debug) viaxcodebuildwith ad-hoc signing.run– builds, installs to/Applications, and launches the app.open/move-app– install the built app to/Applicationsand open it.kill– kill any runningInjectionNextprocess (used before build/install to avoid code-sign/launch races).sync– pull latest and update submodules (DLKit,InjectionLite).clean– remove derived data.No source code changes. Purely a developer convenience file.
Test Plan
make build-appbuilds successfully againstApp/InjectionNext.xcodeproj.make runlaunches the freshly builtInjectionNext.app.make killterminates the running app cleanly.make syncpulls + updates submodules.Made with Cursor