diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -8,6 +8,8 @@ APP_DIR = $(RELEASE_DIR)/osx APP_BINARY = $(RELEASE_DIR)/$(TARGET) APP_BINARY_DIR = $(APP_DIR)/$(APP_NAME)/Contents/MacOS +export MACOSX_DEPLOYMENT_TARGET = $(shell defaults read loginwindow SystemVersionStampAsString) + DMG_NAME = Alacritty.dmg DMG_DIR = $(RELEASE_DIR)/osx @@ -22,6 +24,9 @@ help: ## Prints help for targets with comments binary: | $(TARGET) ## Build release binary with cargo $(TARGET): +ifneq ( "${MACOSX_DEPLOYMENT_TARGET}" , "") + @echo MACOSX_DEPLOYMENT_TARGET=$${MACOSX_DEPLOYMENT_TARGET} +endif cargo build --release app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary |