(target target, tags []string)
| 569 | } |
| 570 | |
| 571 | func buildZip(target target, tags []string) { |
| 572 | name := archiveName(target) |
| 573 | filename := name + ".zip" |
| 574 | |
| 575 | for _, tag := range tags { |
| 576 | if tag == "noupgrade" { |
| 577 | name += "-noupgrade" |
| 578 | break |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | build(target, tags) |
| 583 | codesign(target) |
| 584 | |
| 585 | for i := range target.archiveFiles { |
| 586 | target.archiveFiles[i].src = strings.Replace(target.archiveFiles[i].src, "{{binary}}", target.BinaryName(), 1) |
| 587 | target.archiveFiles[i].dst = strings.Replace(target.archiveFiles[i].dst, "{{binary}}", target.BinaryName(), 1) |
| 588 | target.archiveFiles[i].dst = name + "/" + target.archiveFiles[i].dst |
| 589 | } |
| 590 | |
| 591 | zipFile(filename, target.archiveFiles) |
| 592 | fmt.Println(filename) |
| 593 | } |
| 594 | |
| 595 | func buildDeb(target target, tags []string) { |
| 596 | os.RemoveAll("deb") |
no test coverage detected