StealthInfo
Returns information about the running Stealth instance as a TAboutStealth record.
The record contains:
- StealthVersion — version string (e.g.,
'9.5.0'). - Build — build number as a string.
- BuildDate — build date in
dd.MM.yyyyformat. - GITRevNumber — GIT revision number.
In Python, this method is named GetStealthInfo and returns an AboutData object.
Возвращает информацию о запущенном экземпляре Stealth в виде записи TAboutStealth.
Запись содержит:
- StealthVersion — строка версии (например,
'9.5.0'). - Build — номер сборки в виде строки.
- BuildDate — дата сборки в формате
dd.MM.yyyy. - GITRevNumber — номер ревизии GIT.
В Python метод называется GetStealthInfo и возвращает объект AboutData.
function StealthInfo: TAboutStealth;
TAboutStealth = packed record
StealthVersion: String;
Build: String;
BuildDate: String;
GITRevNumber: Word;
end;
def GetStealthInfo() -> AboutData: ...
var
Info: TAboutStealth;
begin
Info := StealthInfo;
AddToSystemJournal('Stealth v' + Info.StealthVersion);
AddToSystemJournal('Build: ' + Info.Build + ' (' + Info.BuildDate + ')');
AddToSystemJournal('GIT rev: ' + IntToStr(Info.GITRevNumber));
end.
info = GetStealthInfo()
AddToSystemJournal(f'Stealth v{info.StealthVersion}')
AddToSystemJournal(f'Build: {info.Build} ({info.BuildDate})')
AddToSystemJournal(f'GIT rev: {info.GITRevNumber}')