From afc5618b070e45f2bf407e06e780463ec8491292 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 6 Nov 2018 06:11:53 +0100 Subject: Makefile(dist/dome-key): Copy binary from xcarchive The release build is 1.5 Mb, while the archive is 1.1 Mb. Not sure what additional optimisations Xcode applies when it archives, but clearly that's the build we should be distributing. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f2029ff..cf204e2 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ RUST_LIB_RELEASE := $(RUST_DIR)/$(RUST_LOCAL_LIB_RELEASE) DEBUG_PRODUCT := build/Build/Products/Debug/DomeKey RELEASE_PRODUCT := build/Build/Products/Release/DomeKey +ARCHIVE_PRODUCT := build/Release.xcarchive/Products/usr/local/bin/DomeKey # Build debug @@ -43,7 +44,9 @@ $(RUST_LIB_RELEASE): $(RUST_SOURCE_FILES) # Archive .PHONY: archive -archive: clean-release +archive: $(ARCHIVE_PRODUCT) + +$(ARCHIVE_PRODUCT): clean-release xcodebuild -project DomeKey.xcodeproj \ -scheme DomeKey \ -configuration Release \ @@ -98,5 +101,5 @@ dist-all: dist/dome-key dist: mkdir -p dist -dist/dome-key: $(RELEASE_PRODUCT) dist +dist/dome-key: $(ARCHIVE_PRODUCT) dist cp $< $@ -- cgit v1.2.3