Skip to content

Commit 3a68369

Browse files
committed
Add Windows Glojure release asset
Cross-compile the Windows AMD64 executable during release packaging. Name the archive with the win-amd64 suffix expected by the Makes installer.
1 parent d764695 commit 3a68369

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,12 @@ RELEASE-PLATFORMS := \
298298
linux_arm64 \
299299
darwin_amd64 \
300300
darwin_arm64 \
301+
windows_amd64 \
301302
$(EXTRA-RELEASE-PLATFORMS)
302303

303304
RELEASE-BINS := $(foreach p,$(RELEASE-PLATFORMS),bin/$(p)/glj)
305+
RELEASE-ASSET-windows_amd64 := win-amd64
306+
release-asset = $(or $(RELEASE-ASSET-$1),$1)
304307

305308
# Long-form command-line variables take precedence over their aliases.
306309
RELEASE-VERSION := \
@@ -314,7 +317,9 @@ release-dist:
314317
GLJ_VERSION=v$(RELEASE_VER) $(MAKE) generate aot glj-imports $(RELEASE-BINS)
315318
mkdir -p dist
316319
$(foreach p,$(RELEASE-PLATFORMS), \
317-
tar -czf dist/glj-$(RELEASE_VER)-$(p).tar.gz -C bin/$(p) glj ;)
320+
tar -czf \
321+
dist/glj-$(RELEASE_VER)-$(call release-asset,$(p)).tar.gz \
322+
-C bin/$(p) glj ;)
318323
ifdef RELEASE-PLAN9-AMD64
319324
@echo "Building Plan 9/amd64 binary (nospinbitmutex)"
320325
mkdir -p bin/plan9_amd64

0 commit comments

Comments
 (0)