build: add guarded installation of the macOS app bundle

This commit is contained in:
2026-10-11 21:53:23 +02:00
parent 77ed65a22a
commit 5842d86d9a
4 changed files with 134 additions and 3 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
.PHONY: build run test
.PHONY: build run install test
APP := .build/Conjure.app
INSTALL_DIR ?= /Applications
build:
swift build -c release
@@ -12,5 +13,8 @@ build:
run: build
swift Scripts/run.swift "$(APP)"
install: build
swift Scripts/install.swift "$(APP)" "$(INSTALL_DIR)"
test:
swift test