Something went wrong. Try again.
Something went wrong. Try again.
free-launch Makefile
123456789101112131415161718192021222324252627282930313233343536373839APP = FreeLaunchBUNDLE_ID = com.berjon.freelaunchBUILD = buildBUNDLE = $(BUILD)/$(APP).appBINARY = $(BUNDLE)/Contents/MacOS/$(APP)SOURCES = $(wildcard Sources/*.swift)INSTALL_DIR = $(HOME)/ApplicationsINSTALLED = $(INSTALL_DIR)/$(APP).app
.PHONY: all install run stop login-item no-login-item clean
all: $(BINARY)
$(BINARY): $(SOURCES) Info.plist mkdir -p $(BUNDLE)/Contents/MacOS cp Info.plist $(BUNDLE)/Contents/Info.plist swiftc -O -o $(BINARY) $(SOURCES) -framework AppKit -framework Carbon codesign --force --sign - $(BUNDLE)
install: $(BINARY) mkdir -p $(INSTALL_DIR) rm -rf $(INSTALLED) cp -R $(BUNDLE) $(INSTALLED)
run: stop install open $(INSTALLED)
stop: -pkill -x $(APP) 2>/dev/null || true
login-item: install $(INSTALLED)/Contents/MacOS/$(APP) --login-item on
no-login-item: $(INSTALLED)/Contents/MacOS/$(APP) --login-item off
clean: rm -rf $(BUILD)