fix(developer): Show full version number

Updated various places in Keyman Developer to show the full
VersionWithTag rather than the short version number we had been
previously showing:

- About dialog
- Welcome screen
- Installer
- kmcomp help
- kmconvert help
- kmanalyze help
- kmdecomp help

This should help when testing to verify that we are testing the right
version.

Also fixed the keymansentry path when running command line C++ programs
from source repo.
This commit is contained in:
Marc Durdin 2022-06-29 10:58:40 +10:00
parent 60d4ceb5e6
commit 7ec9859838
11 changed files with 33 additions and 18 deletions

View file

@ -20,8 +20,14 @@
#define KEYMANVERSION90W L"9.0"
#define KEYMANVERSION80W L"8.0"
// These macros may be used only in RC files
#define KV_COMPANY_NAME "SIL International\0"
#define KV_LEGAL_COPYRIGHT "\xA9 SIL International\0"
#define KV_LEGAL_TRADEMARKS "Keyman is a registered trademark in Australia\0"
// These macros may be used in C++ files
#define KEYMAN_Copyright "(C) SIL International"
#endif

View file

@ -270,7 +270,7 @@ void keyman_sentry_test_crash() {
#define SENTRY_DLL SENTRY_BASE_DLL
#endif
#define SENTRY_INSTALL_PATH "sentry-0.4.9\\" SENTRY_DLL
#define SENTRY_DEV_PATH "windows\\src\\ext\\sentry\\" SENTRY_DLL
#define SENTRY_DEV_PATH "common\\windows\\delphi\\ext\\sentry\\" SENTRY_DLL
#define ENV_KEYMAN_ROOT "KEYMAN_ROOT"
HMODULE LoadSentryLibrary() {

View file

@ -98,7 +98,7 @@ makeinstaller:
echo [Setup] > setup.inf
echo Version=$Version >> setup.inf
echo MSIFileName=keymandeveloper.msi >> setup.inf
echo Title=Keyman Developer $VersionRelease >>setup.inf
echo Title=Keyman Developer $VersionWithTag >>setup.inf
$(WZZIP) setup.zip keymandeveloper.msi setup.inf
copy /b $(DEVELOPER_PROGRAM)\setup.exe + setup.zip keymandeveloper-$Version.exe
$(SIGNCODE) /d "Keyman Developer" keymandeveloper-$Version.exe

View file

@ -3,6 +3,7 @@
#include "pch.h"
#include "../../../common/windows/cpp/include/crc32.h"
#include "../../../common/windows/cpp/include/keymanversion.h"
#include <iostream>
#include <vector>
#include <codecvt>
@ -59,11 +60,14 @@ int run(int argc, char *argv[])
if (argc < 2 || !strcmp(argv[1], "--help"))
{
puts("KMANALYZE: Extract rules from a Keyman .kmx keyboard to use for building automated tests");
puts("(C) SIL International");
puts("Usage: KMANALYZE <filename> [outputfilename]\n");
puts("Will create a keyboard.tests from keyboard.js; if outputfilename is not specified,");
puts("then will put the output file in the same folder as filename.");
printf(
"KMANALYZE: Extract rules from a Keyman .kmx keyboard to use for building automated tests\n"
"Version %s, %s\n"
"Usage: KMANALYZE <filename> [outputfilename]\n\n"
"Will create a keyboard.tests from keyboard.js; if outputfilename is not specified,\n"
"then will put the output file in the same folder as filename.",
KEYMAN_VersionWithTag, KEYMAN_Copyright
);
return 1;
}

View file

@ -208,7 +208,7 @@ begin
{$ELSE}
writeln(SKeymanDeveloperName + ' Compiler (32-bit)');
{$ENDIF}
writeln('Version ' + GetVersionString + ', ' + GetVersionCopyright);
writeln('Version ' + CKeymanVersionInfo.VersionWithTag + ', ' + GetVersionCopyright);
end;
if FError or (FParamInfile = '') then

View file

@ -148,7 +148,7 @@ end;
procedure WriteBanner;
begin
writeln(SKeymanDeveloperName + ' Conversion Utility');
writeln('Version ' + GetVersionString + ', ' + GetVersionCopyright);
writeln('Version ' + CKeymanVersionInfo.VersionWithTag + ', ' + GetVersionCopyright);
writeln;
end;

View file

@ -21,6 +21,7 @@
#include <string.h>
#include <stdio.h>
#include "../../../common/windows/cpp/include/keymansentry.h"
#include "../../../common/windows/cpp/include/keymanversion.h"
#include "../../../common/windows/cpp/include/legacy_kmx_memory.h"
#include "../../../common/windows/cpp/include/legacy_kmx_file.h"
@ -56,10 +57,13 @@ int run(int argc, char *argv[])
if(argc < 2 || !strcmp(argv[1], "--help"))
{
puts("KMDECOMP: Decompile Keyman .kmx keyboard");
puts("(C) SIL International");
puts("Usage: KMDECOMP <filename> [output]\n");
puts("Will create a .kmn and optionally a .bmp/.ico with the same filename and in the same location as the input");
printf(
"KMDECOMP: Decompile Keyman .kmx keyboard\n"
"Version %s, %s\n"
"Usage: KMDECOMP <filename> [output]\n"
"Will create a.kmn and optionally a.bmp / .ico with the same filename and in the same location as the input",
KEYMAN_VersionWithTag, KEYMAN_Copyright
);
return 1;
}

View file

@ -60,7 +60,7 @@ const
'', '', '',
'Keyman Developer Setup',
'%0:s Setup',
'Keyman Developer %0:s Setup',
'Setup will install %0:s',
'Created by SIL International',
'Check for &updates online before installing',

View file

@ -494,8 +494,8 @@ begin
SetFontProperties(IDC_CHECK1, FW_NORMAL, ssFontSize_Dialog, ssFontName_Dialog);
SetFontProperties(IDCANCEL, FW_NORMAL, ssFontSize_Dialog, ssFontName_Dialog);
SetWindowText(GetDlgItem(Handle, IDC_TITLE), PWideChar(FInstallInfo.Text(ssTitle, [FInstallInfo.EditionTitle])));
SetWindowText(GetDlgItem(Handle, IDC_LOGOMESSAGE), PWideChar(FInstallInfo.Text(ssSIL, [FInstallInfo.EditionTitle])));
SetWindowText(GetDlgItem(Handle, IDC_TITLE), PWideChar(FInstallInfo.Text(ssTitle, [FInstallInfo.Version])));
SetWindowText(GetDlgItem(Handle, IDC_LOGOMESSAGE), PWideChar(FInstallInfo.Text(ssSIL, [])));
SetWindowText(GetDlgItem(Handle, IDC_MESSAGE), PWideChar(FInstallInfo.Text(ssWelcome_Plain, [FInstallInfo.EditionTitle])));
SetWindowText(GetDlgItem(Handle, IDC_CHECK1), PWideChar(FInstallInfo.Text(ssCheckForUpdates)));

View file

@ -79,7 +79,7 @@ begin
inherited;
Caption := SCaption;
lblWebsite.Caption := MakeKeymanURL(URLPath_KeymanDeveloperHome_Presentation);
lblVersion.Caption := 'Version ' + GetVersionString;
lblVersion.Caption := 'Version ' + CKeymanVersionInfo.VersionWithTag;
lblCopyright.Caption := GetVersionCopyright;
end;

View file

@ -16,6 +16,7 @@ uses
Winapi.Shlobj,
Xml.Win.msxmldom,
KeymanVersion,
Keyman.Developer.System.Project.ProjectFile,
Keyman.Developer.System.Project.UrlRenderer,
RegistryKeys,
@ -72,7 +73,7 @@ begin
end;
node := doc.createElement('Version');
node.appendChild(doc.createTextNode(GetVersionString));
node.appendChild(doc.createTextNode(CKeymanVersionInfo.VersionWithTag));
root.appendChild(node);
TProjectUrlRenderer.AddUrls(root);