Skip to content

Commit

Permalink
Update Makefile for Azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelgk committed Jun 29, 2020
1 parent 04dce4f commit bd969c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,18 @@ DISTRIBUTABLES += $(wildcard LICENSE*)

# Include the Rack plugin Makefile framework
include $(RACK_DIR)/plugin.mk


ifdef ARCH_WIN
# extra dist target for Azure CI Windows build, as there is only 7zip available and no zip command
azure-win-dist: all
rm -rf dist
mkdir -p dist/$(SLUG)
@# Strip and copy plugin binary
cp $(TARGET) dist/$(SLUG)/
$(STRIP) -s dist/$(SLUG)/$(TARGET)
@# Copy distributables
cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
@# Create ZIP package
cd dist && 7z a -tzip -mx=9 $(SLUG)-$(VERSION)-$(ARCH).zip -r $(SLUG)
endif

0 comments on commit bd969c4

Please sign in to comment.