Switch to mage #651

Merged
konrad merged 61 commits from feature/mage into master 2020-09-03 15:13:21 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 6a589a65c7 - Show all commits

View File

@ -426,14 +426,17 @@ func (Release) Windows() error {
return runXgo("windows/*")
}
// Builds binaries for linux
func (Release) Linux() error {
return runXgo("linux/*")
}
// Builds binaries for darwin
func (Release) Darwin() error {
return runXgo("darwin/*")
}
// Compresses the built binaries in dist/binaries/ to reduce their filesize
func (Release) Compress(ctx context.Context) error {
// $(foreach file,$(filter-out $(wildcard $(wildcard $(DIST)/binaries/$(EXECUTABLE)-*mips*)),$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*)), upx -9 $(file);)