Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ You'll need macOS 15+ and Xcode with Swift 6. Clone the repo and run:
make build
```

That's it. Dependencies are managed through SPM and resolve automatically.
That's it. Dependencies are managed through SPM and resolve automatically. The default debug build is unsigned so contributors can build the app without a local Apple Developer certificate or the maintainer's development team configured in Xcode.

To build and launch in one step:

```bash
make dev
```

If you need to test a signed debug build locally, pass your own Apple development team:

```bash
make build DEBUG_CODE_SIGNING_ALLOWED=YES DEBUG_DEVELOPMENT_TEAM=YOURTEAMID
```

## Making changes

1. Fork the repo and create a branch from `main`.
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ BUILD_DIR = .build
VERSION = $(shell grep MARKETING_VERSION Config.xcconfig | cut -d'=' -f2 | tr -d ' ')
RELEASE_DIR = $(BUILD_DIR)/Build/Products/Release
DEBUG_DIR = $(BUILD_DIR)/Build/Products/Debug
DEBUG_CODE_SIGNING_ALLOWED ?= NO
DEBUG_DEVELOPMENT_TEAM ?=
DEBUG_SIGNING_OVERRIDES = CODE_SIGNING_ALLOWED=$(DEBUG_CODE_SIGNING_ALLOWED) DEVELOPMENT_TEAM=$(DEBUG_DEVELOPMENT_TEAM)

.PHONY: build release run dev dmg dmg-release format clean help install uninstall changelog tag appcast publish

all: help

build:
@xcodebuild -project Reframed.xcodeproj -scheme $(SCHEME) -configuration Debug build -quiet -derivedDataPath $(BUILD_DIR) -destination '$(DESTINATION)'
@xcodebuild -project Reframed.xcodeproj -scheme $(SCHEME) -configuration Debug build -quiet -derivedDataPath $(BUILD_DIR) -destination '$(DESTINATION)' $(DEBUG_SIGNING_OVERRIDES)

release:
@xcodebuild -project Reframed.xcodeproj -scheme $(SCHEME) -configuration Release build -quiet -derivedDataPath $(BUILD_DIR) -destination 'generic/platform=macOS' ARCHS="arm64 x86_64" ONLY_ACTIVE_ARCH=NO
Expand Down
Loading