Skip to content

Commit 35a5bae

Browse files
anjannathpraveenkumar
authored andcommitted
Issue #388 Add windows release target to Makefile
1 parent 3946ae0 commit 35a5bae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ release: clean fmtcheck cross
137137
@mkdir -p $(BUILD_DIR)/crc-$(CRC_VERSION)-linux-amd64
138138
@cp LICENSE $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/crc-$(CRC_VERSION)-linux-amd64
139139
tar cJSf $(RELEASE_DIR)/crc-$(CRC_VERSION)-linux-amd64.tar.xz -C $(BUILD_DIR) crc-$(CRC_VERSION)-linux-amd64
140+
141+
@mkdir -p $(BUILD_DIR)/crc-$(CRC_VERSION)-windows-amd64
142+
@cp LICENSE $(BUILD_DIR)/windows-amd64/crc.exe $(BUILD_DIR)/crc-$(CRC_VERSION)-windows-amd64
143+
cd $(BUILD_DIR) && zip -r $(CURDIR)/$(RELEASE_DIR)/crc-$(CRC_VERSION)-windows-amd64.zip crc-$(CRC_VERSION)-windows-amd64
140144

141145
.PHONY: embed_bundle
142146
embed_bundle: LDFLAGS += $(BUNDLE_EMBEDDED)

0 commit comments

Comments
 (0)