mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
feat(monorel): add tar.zst and windows tar.gz archive formats
- Non-Windows archives: tar.gz, tar.zst (zstd for faster decompression) - Windows archives: zip, tar.gz (Windows ships with bsd tar + gz support) - Upload script: include *.tar.zst globs alongside *.tar.gz and *.zip
This commit is contained in:
parent
e4402f4a4a
commit
1c779296e9
@ -1209,7 +1209,7 @@ func goreleaserYAML(projectName string, bins []binary) string {
|
||||
for _, bin := range bins {
|
||||
wf(" - id: %s\n", bin.name)
|
||||
wf(" ids: [%s]\n", bin.name)
|
||||
w(" formats: [tar.gz]\n")
|
||||
w(" formats: [tar.gz, tar.zst]\n")
|
||||
w(" # name_template uses VERSION env var so the prefixed monorepo tag\n")
|
||||
w(" # doesn't appear in archive filenames.\n")
|
||||
w(" name_template: >-\n")
|
||||
@ -1221,7 +1221,7 @@ func goreleaserYAML(projectName string, bins []binary) string {
|
||||
w(" {{- if .Arm }}v{{ .Arm }}{{ end }}\n")
|
||||
w(" format_overrides:\n")
|
||||
w(" - goos: windows\n")
|
||||
w(" formats: [zip]\n")
|
||||
w(" formats: [zip, tar.gz]\n")
|
||||
}
|
||||
|
||||
w("\nchangelog:\n sort: asc\n filters:\n exclude:\n")
|
||||
@ -1355,6 +1355,7 @@ func printModuleScript(
|
||||
line("gh release upload %q \\", currentTag)
|
||||
for _, bin := range bins {
|
||||
line(" %s/%s_*.tar.gz \\", distDir, bin.name)
|
||||
line(" %s/%s_*.tar.zst \\", distDir, bin.name)
|
||||
line(" %s/%s_*.zip \\", distDir, bin.name)
|
||||
}
|
||||
line(" \"%s/%s_%s_checksums.txt\" \\", distDir, projectName, version)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user