Skip to content

Commit ee5bbfd

Browse files
committed
feat: standardize commands
1 parent f0322b5 commit ee5bbfd

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

.gon.hcl

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bundle_id = "com.mitchellh.gon"
44
apple_id {
55
username = "[email protected]"
66
password = "@env:AC_PASSWORD"
7+
provider = "UL304B4VGY"
78
}
89

910
sign {

notarize/info.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,10 @@ func info(ctx context.Context, uuid string, opts *Options) (*Info, error) {
6868
uuid,
6969
"--apple-id", opts.DeveloperId,
7070
"--password", opts.Password,
71+
"--team-id", opts.Provider,
7172
"--output-format", "plist",
7273
}
7374

74-
if opts.Provider != "" {
75-
cmd.Args = append(cmd.Args,
76-
"--team-id", opts.Provider,
77-
)
78-
}
79-
8075
// We store all output in out for logging and in case there is an error
8176
var out, combined bytes.Buffer
8277
cmd.Stdout = io.MultiWriter(&out, &combined)

notarize/log.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,7 @@ func log(ctx context.Context, uuid string, opts *Options) (*Log, error) {
7171
uuid,
7272
"--apple-id", opts.DeveloperId,
7373
"--password", opts.Password,
74-
}
75-
76-
if opts.Provider != "" {
77-
cmd.Args = append(cmd.Args,
78-
"--team-id", opts.Provider,
79-
)
74+
"--team-id", opts.Provider,
8075
}
8176

8277
// We store all output in out for logging and in case there is an error

notarize/upload.go

+1-10
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,8 @@ func upload(ctx context.Context, opts *Options) (string, error) {
4343
"--apple-id", opts.DeveloperId,
4444
"--password", opts.Password,
4545
"--team-id", opts.Provider,
46-
}
47-
48-
if opts.Provider != "" {
49-
cmd.Args = append(cmd.Args,
50-
"--team-id", opts.Provider,
51-
)
52-
}
53-
54-
cmd.Args = append(cmd.Args,
5546
"--output-format", "plist",
56-
)
47+
}
5748

5849
// We store all output in out for logging and in case there is an error
5950
var out, combined bytes.Buffer

0 commit comments

Comments
 (0)