diff --git a/plugin.mk b/plugin.mk index 1977a1d0..b1d9e4cd 100644 --- a/plugin.mk +++ b/plugin.mk @@ -21,6 +21,8 @@ ifeq ($(ARCH), win) TARGET = plugin.dll endif +DISTRIBUTABLES += $(TARGET) + all: $(TARGET) @@ -28,3 +30,11 @@ include ../../compile.mk clean: rm -rfv build $(TARGET) dist + +dist: all + rm -rf dist + mkdir -p dist/$(SLUG) + cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ + cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) + +.PHONY: clean dist \ No newline at end of file