Skip to content

Commit a350f86

Browse files
Brandon Hclaude
andcommitted
feat: optimize release assets to reduce total count
- Use tar.gz for all Unix platforms (Linux, macOS) - Use zip only for Windows platform - Keep source code in both tar.gz and zip formats - Reduces total release assets to 7 files + checksums This creates exactly 7 downloadable assets: - 1 Windows zip binary - 4 Unix tar.gz binaries (darwin-amd64/arm64, linux-amd64/arm64) - 2 source archives (tar.gz + zip) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1ee7919 commit a350f86

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,14 @@ release: clean
147147
env GOOS=$$os GOARCH=$$arch GO111MODULE=on $(GOBUILD) $(BUILD_FLAGS) -o $(DIST_DIR)/$$binary_name $(SRC_DIR); \
148148
\
149149
archive_name=$(BINARY_NAME)-$(VERSION)-$$os-$$arch; \
150-
echo "Creating archives for $$archive_name..."; \
150+
echo "Creating archive for $$archive_name..."; \
151151
\
152152
cd $(DIST_DIR); \
153-
tar -czf $$archive_name.tar.gz $$binary_name; \
154-
zip -q $$archive_name.zip $$binary_name; \
153+
if [ $$os = "windows" ]; then \
154+
zip -q $$archive_name.zip $$binary_name; \
155+
else \
156+
tar -czf $$archive_name.tar.gz $$binary_name; \
157+
fi; \
155158
rm $$binary_name; \
156159
cd ..; \
157160
done

0 commit comments

Comments
 (0)