From 48c9c954398eed04e447e3061d3473eae0dccbe6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 28 Feb 2023 13:03:06 +1030 Subject: [PATCH] link --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 73bd8d8..da8e461 100644 --- a/Makefile +++ b/Makefile @@ -65,3 +65,20 @@ run-editor: duskz.tools $(JAVA) \ $(if $(JAVAMODPATH),--module-path $(subst $(S),:,$(JAVAMODPATH))) \ -m duskz.tools/duskz.viewer.MapViewer + +ifeq ($(TARGET),linux-amd64) +jlink_MODPATH = $(JAVA_HOME)/jmods:/usr/local/javafx-jmods +else +jlink_MODPATH = /usr/local/$(TARGET)/jdk/jmods:/usr/local/$(TARGET)/javafx-jmods +endif + +link: duskz.client duskz.server duskz.common + rm -rf bin/$(TARGET)/image + $(JAVA_HOME)/bin/jlink \ + --module-path .lib:bin/$(TARGET)/jmods:$(jlink_MODPATH) \ + --add-modules duskz.client,duskz.server \ + --no-man-pages \ + --compress 2 \ + --output bin/$(TARGET)/image + cd bin/$(TARGET)/image && \ + 7za a ../../$(dist_NAME)-$(dist_VERSION)-$(TARGET).zip . -- 2.39.2