Skip to content

Commit

Permalink
Use platform-specific native packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzxmicah authored Mar 7, 2024
1 parent 3feec86 commit a14aba3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ windows-arm64:
windows-armv7:
GOARCH=arm GOOS=windows GOARM=7 $(GOBUILD) -o $(BUILDDIR)/../$(NAME)-$@.exe

linux_zip_releases=$(addsuffix .zip, $(LINUX_ARCH_LIST))
linux_tar_releases=$(addsuffix .tar.gz, $(LINUX_ARCH_LIST))

$(linux_zip_releases): %.zip : %
makecab $(BUILDDIR)/../$(NAME)-$(basename $@) $(BUILDDIR)/$(NAME)-$(basename $@)-$(VERSION).zip
$(linux_tar_releases): %.tar.gz : %
tar -czf $(BUILDDIR)/$(NAME)-$(basename $@)-$(VERSION).tar.gz $(BUILDDIR)/../$(NAME)-$(basename $@)

windows_zip_releases=$(addsuffix .zip, $(WINDOWS_ARCH_LIST))
windows_cab_releases=$(addsuffix .cab, $(WINDOWS_ARCH_LIST))

$(windows_zip_releases): %.zip : %
makecab $(BUILDDIR)/../$(NAME)-$(basename $@).exe $(BUILDDIR)/$(NAME)-$(basename $@)-$(VERSION).zip
$(windows_cab_releases): %.cab : %
makecab $(BUILDDIR)/../$(NAME)-$(basename $@).exe $(BUILDDIR)/$(NAME)-$(basename $@)-$(VERSION).cab

all-arch: $(LINUX_ARCH_LIST) $(WINDOWS_ARCH_LIST)

releases: $(linux_zip_releases) $(windows_zip_releases)
releases: $(linux_tar_releases) $(windows_cab_releases)

LINT_OS_LIST := windows linux

Expand Down

0 comments on commit a14aba3

Please sign in to comment.