File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ proc provision*() =
70
70
echo " No .cer file found in current directory"
71
71
quit(1 )
72
72
73
+ var certFile = " "
74
+ for f in certFiles:
75
+ if lastPathPart(f) == " developerID_application.cer" :
76
+ certFile = f
77
+ break
78
+ if certFile == " " :
79
+ echo " No developerID_application.cer file found in current directory"
80
+ quit(1 )
81
+
73
82
echo " This next step should be completed in the browser."
74
83
echo " Press 'Enter' to open the browser and continue."
75
84
discard readLine(stdin)
@@ -108,13 +117,13 @@ proc provision*() =
108
117
echo " Success!"
109
118
echo " You can now sign your app using these two files:"
110
119
echo " - private-key.pem"
111
- echo & " - { certFiles[ 0 ] } "
120
+ echo & " - { certFile } "
112
121
echo " You can also use this file to notarize your app:"
113
122
echo " - app-store-key.json"
114
123
115
124
let jsonData = %* {
116
125
" privateKey" : readFile(" private-key.pem" ).encode(),
117
- " certificate" : readFile(certFiles[ 0 ] ).encode(),
126
+ " certificate" : readFile(certFile ).encode(),
118
127
" appStoreKey" : readFile(" app-store-key.json" ).encode()
119
128
}
120
129
writeFile(" renotize.json" , jsonData.pretty())
You can’t perform that action at this time.
0 commit comments