Skip to content

Commit

Permalink
feat: improve package archive level (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto authored Jan 16, 2024
1 parent d12de9c commit 4196942
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
prerelease:
type: boolean
required: false
default: yes
default: true

jobs:
build:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ mac: prepare

package: all
for GOARCH in $(GOARCHS); do \
zip -q -r dist/$(PROJECT_NAME)-windows-$$GOARCH.zip dist/windows_$$GOARCH/; \
zip -q -r dist/$(PROJECT_NAME)-linux-$$GOARCH.zip dist/linux_$$GOARCH/; \
(cd dist/windows_$$GOARCH/ && zip -q -r ../../dist/$(PROJECT_NAME)-windows-$$GOARCH.zip .); \
(cd dist/linux_$$GOARCH/ && zip -q -r ../../dist/$(PROJECT_NAME)-linux-$$GOARCH.zip .); \
done

for GOARCH in $(GOARCHS_MAC); do \
zip -q -r dist/$(PROJECT_NAME)-mac-$$GOARCH.zip dist/mac_$$GOARCH/; \
(cd dist/mac_$$GOARCH/ && zip -q -r ../../dist/$(PROJECT_NAME)-mac-$$GOARCH.zip .); \
done

ARCH_RELEASE_DIRS=$$(find dist -type d -name "*_*"); \
Expand All @@ -64,4 +64,4 @@ run:
clean:
rm -rfd dist

.PHONY: all, default, clean
.PHONY: all, default, clean

0 comments on commit 4196942

Please sign in to comment.