@@ -8,7 +8,7 @@ CRYSTAL_SHA1 ?= $(CRYSTAL_VERSION) ## Git tag/branch/sha1 to checkout and build
8
8
PACKAGE_ITERATION ?= 1
9
9
FORCE_GIT_TAGGED ?= 1 # # Require build to be based on git tag/branch
10
10
11
- PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ ?= # # url to crystal-{version}-{package}-darwin-x86_64 .tar.gz
11
+ PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ ?= # # url to crystal-{version}-{package}-darwin-universal.tar.gz . Eg: https://github.com/crystal-lang/crystal/releases/download/1.10.1/crystal-1.10.1-1-darwin-universal .tar.gz
12
12
13
13
OUTPUT_DIR = build
14
14
@@ -39,15 +39,15 @@ help: ## Show this help
39
39
awk 'BEGIN {FS = "# # "}; /^## [a-zA-Z_-]/ {printf " \033[36m%s\033[0m\n", $$2}; /^## / {printf " %s\n", $$2}'
40
40
41
41
.PHONY : darwin-previous
42
- darwin-previous : $(CURDIR ) /../omnibus/crystal-darwin-x86_64 /embedded/bin/crystal # # download previous crystal darwin release
42
+ darwin-previous : $(CURDIR ) /../omnibus/crystal-darwin/embedded/bin/crystal # # download previous crystal darwin release
43
43
44
44
# Once there are prior builds for arm64, this can use DARWIN_ARCH
45
- $(CURDIR ) /../omnibus/crystal-darwin-x86_64 /embedded/bin/crystal :
46
- curl -L -o /tmp/crystal-darwin-x86_64 .tar.gz $(PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ ) \
47
- && mkdir -p $(CURDIR ) /../omnibus/crystal-darwin-x86_64 \
48
- && tar xfz /tmp/crystal-darwin-x86_64 .tar.gz -C $(CURDIR ) /../omnibus/crystal-darwin-x86_64 --strip-components=1 \
49
- && rm /tmp/crystal-darwin-x86_64 .tar.gz \
50
- && chmod +x $(CURDIR ) /../omnibus/crystal-darwin-x86_64 /embedded/bin/crystal
45
+ $(CURDIR ) /../omnibus/crystal-darwin/embedded/bin/crystal :
46
+ curl -L -o /tmp/crystal-darwin.tar.gz $(PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ ) \
47
+ && mkdir -p $(CURDIR ) /../omnibus/crystal-darwin \
48
+ && tar xfz /tmp/crystal-darwin.tar.gz -C $(CURDIR ) /../omnibus/crystal-darwin --strip-components=1 \
49
+ && rm /tmp/crystal-darwin.tar.gz \
50
+ && chmod +x $(CURDIR ) /../omnibus/crystal-darwin/embedded/bin/crystal
51
51
52
52
$(OUTPUT_DIR ) /$(DARWIN_NAME ) $(OUTPUT_DIR ) /$(DARWIN_PKG_NAME ) : # # Build omnibus crystal project
53
53
ifeq ($(FORCE_GIT_TAGGED ) , 0)
0 commit comments