mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed authenticode-js unsign when changing resources, #4190
This commit is contained in:
parent
0453266148
commit
efd4dac6e8
1 changed files with 4 additions and 2 deletions
|
@ -1937,7 +1937,6 @@ function start() {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("Done.");
|
|
||||||
}
|
}
|
||||||
if (command == 'unsign') { // Unsign an executable
|
if (command == 'unsign') { // Unsign an executable
|
||||||
if (typeof args.exe != 'string') { console.log("Missing --exe [filename]"); return; }
|
if (typeof args.exe != 'string') { console.log("Missing --exe [filename]"); return; }
|
||||||
|
@ -1952,7 +1951,10 @@ function start() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("Changing resources and unsigning to " + args.out);
|
console.log("Changing resources and unsigning to " + args.out);
|
||||||
exe.writeExecutable(args, null); // Unsigning with resources decoded and re-encoded.
|
exe.writeExecutable(args, null, function (err) { // Unsigning with resources decoded and re-encoded.
|
||||||
|
if (err == null) { console.log("Done."); } else { console.log(err); }
|
||||||
|
if (exe != null) { exe.close(); }
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (command == 'createcert') { // Create a code signing certificate and private key
|
if (command == 'createcert') { // Create a code signing certificate and private key
|
||||||
|
|
Loading…
Reference in a new issue