Added macOS to goreleaser

This commit is contained in:
Zoraiz
2021-07-29 16:02:10 +05:00
parent 1bf70473f4
commit 70c91d7114
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ builds:
goos:
- linux
- windows
- darwin
goarch:
# Architectures for executable binary generation
@@ -47,6 +48,7 @@ archives:
replacements:
linux: Linux
windows: Windows
darwin: macOS
amd64: amd64_64bit
arm64: arm64_64bit
386: i386_32bit

View File

@@ -123,7 +123,7 @@ func init() {
cmd.Run()
}
clear["windows"] = func() {
cmd := exec.Command("cmd", "/c", "cls") //Windows example, its tested
cmd := exec.Command("cmd", "/c", "cls")
cmd.Stdout = os.Stdout
cmd.Run()
}