Skip to content

Commit 26f2000

Browse files
committed
release
1 parent ae69bf5 commit 26f2000

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ brews:
4444
name: assemblyai
4545
email: support@assemblyai.com
4646
post_install: |
47-
etc.install "assemblyai welcome -i -v={{ .Tag }} -a={{ .Arch }} -m=brew -o={{ .Os }}"
47+
etc.install "assemblyai welcome -i -v={{ .Tag }} -m=brew"
4848
4949
5050
checksum:

cmd/welcome.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package cmd
55

66
import (
77
"fmt"
8+
"runtime"
89

910
"github.com/google/uuid"
1011
"github.com/spf13/cobra"
@@ -36,6 +37,14 @@ var welcomeCmd = &cobra.Command{
3637
properties.Arch, _ = cmd.Flags().GetString("arch")
3738
properties.Method, _ = cmd.Flags().GetString("method")
3839
properties.Version, _ = cmd.Flags().GetString("version")
40+
if properties.OS == "" {
41+
// get system os
42+
properties.OS = runtime.GOOS
43+
}
44+
if properties.Arch == "" {
45+
// get system arch
46+
properties.Arch = runtime.GOARCH
47+
}
3948

4049
TelemetryCaptureEvent("CLI installed", properties)
4150
}

0 commit comments

Comments
 (0)