feat(macos): add native menu bar app with notch overlay
Introduces a SwiftUI companion app for the Fail Well PWA: menu bar status item, popover with task list / record / history views, command palette, and a Dynamic Island-style notch overlay that shows the active step and timer beside the hardware notch and expands on hover to reveal pause/next controls.
This commit is contained in:
38
macos/Makefile
Normal file
38
macos/Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
APP_NAME := FailWell
|
||||
BUNDLE := $(APP_NAME).app
|
||||
CONFIG := release
|
||||
BIN_DIR := .build/$(CONFIG)
|
||||
BIN := $(BIN_DIR)/$(APP_NAME)
|
||||
|
||||
.PHONY: build release app run debug test clean
|
||||
|
||||
build:
|
||||
swift build
|
||||
|
||||
release:
|
||||
swift build -c release
|
||||
|
||||
app: release
|
||||
@rm -rf $(BUNDLE)
|
||||
@mkdir -p $(BUNDLE)/Contents/MacOS $(BUNDLE)/Contents/Resources
|
||||
@cp $(BIN) $(BUNDLE)/Contents/MacOS/$(APP_NAME)
|
||||
@cp Info.plist $(BUNDLE)/Contents/Info.plist
|
||||
@codesign --force --deep --sign - $(BUNDLE) 2>/dev/null || true
|
||||
@echo "Built $(BUNDLE)"
|
||||
|
||||
run: app
|
||||
@open $(BUNDLE)
|
||||
|
||||
debug: build
|
||||
@rm -rf $(BUNDLE)
|
||||
@mkdir -p $(BUNDLE)/Contents/MacOS $(BUNDLE)/Contents/Resources
|
||||
@cp .build/debug/$(APP_NAME) $(BUNDLE)/Contents/MacOS/$(APP_NAME)
|
||||
@cp Info.plist $(BUNDLE)/Contents/Info.plist
|
||||
@codesign --force --deep --sign - $(BUNDLE) 2>/dev/null || true
|
||||
@open $(BUNDLE)
|
||||
|
||||
test:
|
||||
swift test
|
||||
|
||||
clean:
|
||||
@rm -rf .build $(BUNDLE)
|
||||
Reference in New Issue
Block a user