File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 275
275
<!-- Unzip unsigned app into working dir -->
276
276
<unzip dest =" macosx/work" src =" macosx/arduino-${ version } -${ platform } .zip" overwrite =" false" />
277
277
278
+ <!-- Unlock keychain file -->
279
+ <exec executable =" security" dir =" macosx/work" >
280
+ <arg line =" unlock-keychain -p "${ macosx-sign-keychain-pass } " "${ macosx-sign-keychain } "" />
281
+ </exec >
282
+
278
283
<!-- Sign app -->
279
284
<exec executable =" codesign" dir =" macosx/work" failonerror =" true" >
280
- <arg line =" -s "${ macosx-sign-id } " -v Arduino.app/" />
285
+ <arg line =" --keychain " ${ macosx-sign-keychain } " - s "${ macosx-sign-id } " -v Arduino.app/" />
281
286
</exec >
282
287
283
288
<!-- Create signed zip file -->
295
300
</target >
296
301
297
302
<target name =" macosx-singed-dist-check" >
298
- <fail unless =" macosx-sign-id" message =" Please set the property 'macosx-sign-id' to correctly sign distribution file" />
303
+ <fail unless =" macosx-sign-keychain" message =" Please set the property 'macosx-sign-keychain' to the correct keychain file" />
304
+ <fail unless =" macosx-sign-keychain-pass" message =" Please set the property 'macosx-sign-keychain-pass' with the password to unlock the keychain" />
305
+ <fail unless =" macosx-sign-id" message =" Please set the property 'macosx-sign-id' to the correct cert identifier" />
299
306
</target >
300
307
301
308
<!-- - - - - - - - - - - - - - - - - - - -->
You can’t perform that action at this time.
0 commit comments