protected $exenameMaxlength = 30;
protected $_compileOnConstruct = true;
protected $packageIconExt = 'ico';
- protected $nwbuildVersion = '3.8.6';
+ protected $nwbuildVersion = '4.0.7';
protected $_ext = 'html';
// $cl->setArg(null, $this->vdir);
// $cl->execute();
- if ($this->nwbuildVersion === 3) {
+ if (version_compare($this->nwbuildVersion, 4, '<')) {
$platform = $this->getNWbuilder3Platform();
$cl = new CommandLine('nwbuild');
$cl->execute();
} else {
$cl = new CommandLine('nwbuild');
+ $cl->cd($this->vdir);
+ $cl->setArg(null, 'package.json');
$cl->setArg('platform', $this->nwplatform);
$cl->setArg('outDir', $this->buildPath);
$cl->setArg('flavour', "normal");
$cl->setArg('version', $this->nwversion);
$cl->setArg('arch', $this->arch);
- $cl->setArg(null, $this->vdir);
$cl->execute();
}
function signExe()
{
- $exe = $this->getFinalPackageDir() . '/' . $this->exeName . '.exe';
- if (file_exists('/mnt/sshfs/codesign')) {
- $this->_sign($exe);
- }
+ $exe = $this->getFinalPackageDir() . $this->exeName . '.exe';
+ $this->_sign($exe);
}
function _sign($source, $symbolicLink = false)
{
$rand = 'sign-' . hash_file('sha256', $source) . '.exe';
- $distant = '/mnt/sshfs/codesign/' . $rand;
+ $distant = 'C:/Sign/' . $rand;
$local = protected_path('signedexe/' . $rand);
if (!file_exists($local)) {
- `mv $source $distant`;
+ $ssh = new SSH2('paris.cubedesigners.com', 'vince', 'Y@mUC9mY2DOYWXkN', '22422');
+ $ssh->send($source, $distant);
+ unlink($source);
+
$cli = new CommandLine('C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/signtool.exe');
$cli->setManualArg("sign /f C:/Users/vince/Documents/Cubedesigners.cer /csp \"eToken Base Cryptographic Provider\" /k \"[SafeNet Token JC 0{{TYWjZacq%hAH98}}]=54C3F1B91759268A\" /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a C:/Sign/$rand");
- $cli->execute(new SSH2('paris.cubedesigners.com', 'vince', 'Y@mUC9mY2DOYWXkN', '22422'));
+ $cli->execute($ssh);
if (!stristr($cli->getOutput(), 'Successfully signed')) {
unlink($distant);
throw new \Exception('Error while signing exe ' . $rand . ' : ' . $cli->getOutput());
}
- copy($distant, $local);
- unlink($distant);
+
+ $ssh->recv($distant, $local);
+ $ssh->unlink($distant);
sleep(2);
}
if ($symbolicLink) {
"source": {
"type": "git",
"url": "git://git.cubedesigners.com/cubist_net.git",
- "reference": "2df4884f5dd6c515bdcdc238884a852cc918a35b"
+ "reference": "0a845f16f3c1512b7beae57c0589eacc573743c2"
},
"dist": {
"type": "tar",
- "url": "https://composer.cubedesigners.com/dist/cubist/net/cubist-net-dev-master-4d699f.tar",
- "reference": "2df4884f5dd6c515bdcdc238884a852cc918a35b",
- "shasum": "79d35212b27d002ac9befbb0e63177e79b846252"
+ "url": "https://composer.cubedesigners.com/dist/cubist/net/cubist-net-dev-master-247364.tar",
+ "reference": "0a845f16f3c1512b7beae57c0589eacc573743c2",
+ "shasum": "e3d881b5c49cf02b44cb4b66caa985c8ad62c860"
},
"require": {
"ext-ssh2": "*",
}
],
"description": "net cubist composer package",
- "time": "2022-05-03T07:33:01+00:00"
+ "time": "2023-01-19T19:54:06+00:00"
},
{
"name": "cubist/pdf",
"source": {
"type": "git",
"url": "git://git.cubedesigners.com/cubist_util.git",
- "reference": "1df8a20be9fd6d50873388d776b9b5978f32c8ca"
+ "reference": "946c1cf3cb6ff8d0ba49087eaf1a7eef20a67087"
},
"dist": {
"type": "tar",
- "url": "https://composer.cubedesigners.com/dist/cubist/util/cubist-util-dev-master-e00b85.tar",
- "reference": "1df8a20be9fd6d50873388d776b9b5978f32c8ca",
- "shasum": "24d40bb3b892638319aac870397daf0249c611c2"
+ "url": "https://composer.cubedesigners.com/dist/cubist/util/cubist-util-dev-master-06cab9.tar",
+ "reference": "946c1cf3cb6ff8d0ba49087eaf1a7eef20a67087",
+ "shasum": "28fb0f86620fffa6caa911174f7056a131340ae5"
},
"require": {
"cubist/net": "dev-master",
}
],
"description": "Utilities class",
- "time": "2022-12-20T09:18:30+00:00"
+ "time": "2023-01-19T19:33:05+00:00"
},
{
"name": "cviebrock/eloquent-sluggable",