@@ -19,7 +19,7 @@ class Appcast
19
19
20
20
CLI_OPTIONS = {
21
21
account : '--account' ,
22
- private_eddsa_key : '-s ' ,
22
+ private_ed_key_file : '--ed-key-file ' ,
23
23
download_url_prefix : '--download-url-prefix' ,
24
24
release_notes_url_prefix : '--release-notes-url-prefix' ,
25
25
full_release_notes_url : '--full-release-notes-url' ,
@@ -93,7 +93,7 @@ def prepare_args
93
93
args = [ ]
94
94
95
95
account ( args )
96
- private_eddsa_key ( args )
96
+ private_ed_key_file ( args )
97
97
download_url_prefix ( args )
98
98
release_notes_url_prefix ( args )
99
99
full_release_notes_url ( args )
@@ -127,12 +127,11 @@ def account(args)
127
127
# -s <private-EdDSA-key> The private EdDSA string (128 characters). If not
128
128
# specified, the private EdDSA key will be read from
129
129
# the Keychain instead.
130
- def private_eddsa_key ( args )
131
- if cli_options [ :private_eddsa_key ] . present?
132
- args << "-s=#{ cli_options [ :private_eddsa_key ] } "
133
- elsif use_exported_private_key && File . exist? ( private_key_path )
134
- private_key = File . read ( private_key_path )
135
- args << "-s=#{ private_key } "
130
+ def private_ed_key_file ( args )
131
+ if cli_options [ :private_ed_key_file ] . present?
132
+ args << "--ed-key-file=#{ cli_options [ :private_ed_key_file ] } "
133
+ elsif use_exported_private_key && File . exist? ( @sparkle . private_key_path )
134
+ args << "--ed-key-file=#{ @sparkle . private_key_path } "
136
135
end
137
136
end
138
137
0 commit comments