From: vincent@cubedesigners.com Date: Tue, 26 Apr 2022 13:29:11 +0000 (+0000) Subject: wip #5255 @4 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b0f0d2b8e10e321754e81be03b9f1fac0e5e8562;p=cubeextranet.git wip #5255 @4 --- diff --git a/inc/ws/Util/packager/class.ws.packager.win.exe.html.php b/inc/ws/Util/packager/class.ws.packager.win.exe.html.php index c33b053a0..13396a4eb 100644 --- a/inc/ws/Util/packager/class.ws.packager.win.exe.html.php +++ b/inc/ws/Util/packager/class.ws.packager.win.exe.html.php @@ -80,17 +80,13 @@ class wsPackagerWinEXEHTML extends wsPackager function _sign($exe) { $rand = 'sign-' . rand(1000000, 9999999) . '.exe'; - copy($exe, '/mnt/sshfs/vincent/D:/Sign/' . $rand); - $cli = new CubeIT_CommandLine('C:/ProgramData/chocolatey/bin/psexec'); - $cli->setArg('i', 1); - $cli->setArg('u', 'vince'); - $cli->setArg('p', 'Y@mUC9mY2DOYWXkN'); - $cli->setArg(null, "D:/Works/Scripts/codesign/sign.exe $rand"); - $cli->setSSH('paris.cubedesigners.com', 'vince', 'Y@mUC9mY2DOYWXkN', '22322'); - $cli->execute(); + copy($exe, '/mnt/sshfs/codesign/' . $rand); + $cli = new CubeIT_CommandLine('C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/signtool.exe'); + $cli->setManualArg("sign /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a C:/Sign/$rand"); + $cli->execute(new CubeIT_Networking_SSH2('paris.cubedesigners.com','vince','Y@mUC9mY2DOYWXkN','22422')); $cli->debug(); - sleep(5); - copy('/mnt/sshfs/vincent/D:/Sign/' . $rand, $exe); + sleep(15); + copy('/mnt/sshfs/codesign/' . $rand, $exe); } function replaceFFMpeg()