Patch level : 12.0 902
Files correlati : ba1.exe Commento : Aggiunta firma nel programma delle patch
This commit is contained in:
parent
7bbcac8f00
commit
6830096fbf
2965
exe/install.ini
2965
exe/install.ini
File diff suppressed because it is too large
Load Diff
@ -1998,6 +1998,9 @@ bool TFascicolator_mask::set_version_info(const TFilename& filename,
|
|||||||
if (!ok)
|
if (!ok)
|
||||||
error_box("Error writing signature in %s error n. %d", (const char *) filename, errno);
|
error_box("Error writing signature in %s error n. %d", (const char *) filename, errno);
|
||||||
}
|
}
|
||||||
|
if (outfile.is_open())
|
||||||
|
outfile.close(); // Qualcuno qui si dimentica di chiuderli i file eh?! Aspettiamo che il programma termini per rilasciare le risorse?
|
||||||
|
SIRIOSIGN(filename); // Super modifica per la firma durante la creazione delle patch. Tolta firma in post-compilazione. (Solo per exe, dll ancora in post-compilazione)
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
@ -278,6 +278,16 @@ bool input_filename(TFilename& file)
|
|||||||
return good;
|
return good;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void sirio_codesigning(const TFilename& filename)
|
||||||
|
{
|
||||||
|
TConfig installini("install.ini", "Main");
|
||||||
|
TString command = installini.get("SirioSignCommand", nullptr, -1, "");
|
||||||
|
if (command.empty())
|
||||||
|
command << R"("C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\signtool.exe" sign /a /s MY /n "Sirio Informatica e Sistemi SPA" /t http://timestamp.verisign.com/scripts/timstamp.dll /v)";
|
||||||
|
command << " \"" << filename.path() << static_cast<const char*>((const TFilename&)filename) << "\"";
|
||||||
|
message_box(command);
|
||||||
|
xvt_sys_execute(command, TRUE, FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
// Certified 99%
|
// Certified 99%
|
||||||
// @doc EXTERNAL
|
// @doc EXTERNAL
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
#define SAFE_DELETE(p) { delete p; p = NULL; }
|
#define SAFE_DELETE(p) { delete p; p = NULL; }
|
||||||
#define DEBUG_ENABLED is_debug_station()
|
#define DEBUG_ENABLED is_debug_station()
|
||||||
|
|
||||||
|
void sirio_codesigning(const TFilename& filename);
|
||||||
|
#define SIRIOSIGN(filename) sirio_codesigning((const TFilename&)((filename)))
|
||||||
|
|
||||||
|
|
||||||
class TPerformance_profiler : public TObject
|
class TPerformance_profiler : public TObject
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user