build: add guarded installation of the macOS app bundle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user