Skip to content

Commit

Permalink
Allow code signing with certificate.path='<token>'
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsando committed Jan 23, 2024
1 parent 5043394 commit dd6c4a7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/nme/src/platforms/Platform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,20 @@ class Platform
var signtool = project.getDef("SIGNTOOL");
if (signtool==null || signtool=="")
{
Log.verbose("SIGNTOOL variale not found, assuming signtool.exe");
Log.verbose("SIGNTOOL variable not found, assuming signtool.exe");
signtool = "signtool.exe";
}
var pfxPath = project.certificate.path;
var certificatePwd = project.certificate.password;

var signParams = ["sign", "/fd", "SHA256", "/a" ];
if (pfxPath!="<token>" && pfxPath!="" && pfxPath!=null)
signParams = signParams.concat(["/f", pfxPath]);
if (certificatePwd!=null && certificatePwd!="")
signParams = signParams.concat(["/p", certificatePwd]);

signParams = signParams.concat([ "/t", "http://timestamp.digicert.com", name]);

var signParams = ["sign", "/fd", "SHA256", "/a", "/f", pfxPath, "/p", certificatePwd,
"/t", "http://timestamp.digicert.com", name];
ProcessHelper.runCommand("",signtool,signParams);
Log.verbose("signed installer");
}
Expand Down

0 comments on commit dd6c4a7

Please sign in to comment.