diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 573306a..a3d5dac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: prerelease: type: boolean required: false - default: yes + default: true jobs: build: diff --git a/Makefile b/Makefile index 9a92178..0c4726f 100644 --- a/Makefile +++ b/Makefile @@ -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 "*_*"); \ @@ -64,4 +64,4 @@ run: clean: rm -rfd dist -.PHONY: all, default, clean \ No newline at end of file +.PHONY: all, default, clean