@keymanapp/kmc-package 18.0.40-alpha → 18.0.45-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/build/src/compiler/cp1252.d.ts +7 -7
  2. package/build/src/compiler/cp1252.js +287 -290
  3. package/build/src/compiler/cp1252.js.map +1 -1
  4. package/build/src/compiler/kmp-compiler.d.ts +105 -105
  5. package/build/src/compiler/kmp-compiler.js +502 -505
  6. package/build/src/compiler/kmp-compiler.js.map +1 -1
  7. package/build/src/compiler/kmp-inf-writer.d.ts +21 -21
  8. package/build/src/compiler/kmp-inf-writer.js +143 -146
  9. package/build/src/compiler/kmp-inf-writer.js.map +1 -1
  10. package/build/src/compiler/kmx-keyboard-metadata.d.ts +3 -3
  11. package/build/src/compiler/kmx-keyboard-metadata.js +17 -20
  12. package/build/src/compiler/kmx-keyboard-metadata.js.map +1 -1
  13. package/build/src/compiler/markdown.d.ts +12 -12
  14. package/build/src/compiler/markdown.js +47 -50
  15. package/build/src/compiler/markdown.js.map +1 -1
  16. package/build/src/compiler/package-compiler-messages.d.ts +130 -130
  17. package/build/src/compiler/package-compiler-messages.js +79 -82
  18. package/build/src/compiler/package-compiler-messages.js.map +1 -1
  19. package/build/src/compiler/package-keyboard-target-validator.d.ts +12 -12
  20. package/build/src/compiler/package-keyboard-target-validator.js +43 -46
  21. package/build/src/compiler/package-keyboard-target-validator.js.map +1 -1
  22. package/build/src/compiler/package-metadata-collector.d.ts +16 -16
  23. package/build/src/compiler/package-metadata-collector.js +80 -83
  24. package/build/src/compiler/package-metadata-collector.js.map +1 -1
  25. package/build/src/compiler/package-metadata-updater.d.ts +4 -4
  26. package/build/src/compiler/package-metadata-updater.js +11 -14
  27. package/build/src/compiler/package-metadata-updater.js.map +1 -1
  28. package/build/src/compiler/package-validation.d.ts +18 -18
  29. package/build/src/compiler/package-validation.js +178 -181
  30. package/build/src/compiler/package-validation.js.map +1 -1
  31. package/build/src/compiler/package-version-validator.d.ts +20 -20
  32. package/build/src/compiler/package-version-validator.js +90 -93
  33. package/build/src/compiler/package-version-validator.js.map +1 -1
  34. package/build/src/compiler/redist-files.d.ts +17 -17
  35. package/build/src/compiler/redist-files.js +57 -60
  36. package/build/src/compiler/redist-files.js.map +1 -1
  37. package/build/src/compiler/web-keyboard-metadata.d.ts +20 -20
  38. package/build/src/compiler/web-keyboard-metadata.js +35 -38
  39. package/build/src/compiler/web-keyboard-metadata.js.map +1 -1
  40. package/build/src/compiler/windows-package-installer-compiler.d.ts +106 -106
  41. package/build/src/compiler/windows-package-installer-compiler.js +172 -175
  42. package/build/src/compiler/windows-package-installer-compiler.js.map +1 -1
  43. package/build/src/main.d.ts +4 -4
  44. package/build/src/main.js +5 -8
  45. package/build/src/main.js.map +1 -1
  46. package/package.json +3 -3
@@ -1,107 +1,107 @@
1
- /**
2
- * Create a .exe installer that bundles one or more .kmp files, together with
3
- * setup.exe, keymandesktop.msi, and generates and includes a setup.inf also.
4
- *
5
- * This module is effectively deprecated, but is present to keep parity with the
6
- * legacy kmcomp compiler. Thus, it is included as part of the package compiler,
7
- * and will be removed in a future version.
8
- *
9
- * This tool assumes that the installer .msi is the same version as the
10
- * compiler, unlike the legacy compiler which read this metadata from the .msi.
11
- */
12
- import { CompilerCallbacks, KeymanCompiler, KeymanCompilerArtifact, KeymanCompilerArtifacts, KeymanCompilerResult } from "@keymanapp/common-types";
13
- import { KmpCompilerOptions } from "./kmp-compiler.js";
14
- /**
15
- * @public
16
- * Sources and metadata for the Windows package installer compiler
17
- */
18
- export interface WindowsPackageInstallerSources {
19
- msiFilename: string;
20
- setupExeFilename: string;
21
- licenseFilename: string;
22
- titleImageFilename?: string;
23
- appName?: string;
24
- startDisabled: boolean;
25
- startWithConfiguration: boolean;
26
- }
27
- /**
28
- * @public
29
- * Options for the .kps Windows package installer compiler
30
- */
31
- export interface WindowsPackageInstallerCompilerOptions extends KmpCompilerOptions {
32
- /**
33
- * Sources and metadata for the Windows package installer compiler
34
- */
35
- sources: WindowsPackageInstallerSources;
36
- }
37
- /**
38
- * @public
39
- * Internal in-memory build artifacts from a successful compilation
40
- */
41
- export interface WindowsPackageInstallerCompilerArtifacts extends KeymanCompilerArtifacts {
42
- /**
43
- * Binary package installer filedata and filename - installable into Keyman
44
- * desktop and mobile projects
45
- */
46
- exe: KeymanCompilerArtifact;
47
- }
48
- /**
49
- * @public
50
- * Build artifacts from the .kps Windows package installer compiler
51
- */
52
- export interface WindowsPackageInstallerCompilerResult extends KeymanCompilerResult {
53
- /**
54
- * Internal in-memory build artifacts from a successful compilation. Caller
55
- * can write these to disk with {@link WindowsPackageInstallerCompiler.write}
56
- */
57
- artifacts: WindowsPackageInstallerCompilerArtifacts;
58
- }
59
- /**
60
- * @public
61
- * Compiles a .kps file to a .exe installer. The compiler does not read or write
62
- * from filesystem or network directly, but relies on callbacks for all external
63
- * IO.
64
- */
65
- export declare class WindowsPackageInstallerCompiler implements KeymanCompiler {
66
- private kmpCompiler;
67
- private callbacks;
68
- private options;
69
- /**
70
- * Initialize the compiler.
71
- * Copies options.
72
- * @param callbacks - Callbacks for external interfaces, including message
73
- * reporting and file io
74
- * @param options - Compiler options
75
- * @returns false if initialization fails
76
- */
77
- init(callbacks: CompilerCallbacks, options: WindowsPackageInstallerCompilerOptions): Promise<boolean>;
78
- /**
79
- * Compiles a .kps file to .exe Windows package installer file. Returns an
80
- * object containing binary artifacts on success. The files are passed in by
81
- * name, and the compiler will use callbacks as passed to the
82
- * {@link WindowsPackageInstallerCompiler.init} function to read any input
83
- * files by disk.
84
- * @param infile - Path to source file. Path will be parsed to find relative
85
- * references in the .kmn file, such as icon or On Screen
86
- * Keyboard file
87
- * @param outfile - Path to output file. The file will not be written to, but
88
- * will be included in the result for use by
89
- * {@link WindowsPackageInstallerCompiler.write}.
90
- * @returns Binary artifacts on success, null on failure.
91
- */
92
- run(inputFilename: string, outputFilename?: string): Promise<WindowsPackageInstallerCompilerResult>;
93
- /**
94
- * Write artifacts from a successful compile to disk, via callbacks methods.
95
- * The artifacts written may include:
96
- *
97
- * - .exe file - binary Windows package installer executable file
98
- *
99
- * @param artifacts - object containing artifact binary data to write out
100
- * @returns true on success
101
- */
102
- write(artifacts: WindowsPackageInstallerCompilerArtifacts): Promise<boolean>;
103
- private buildZip;
104
- private buildSetupInf;
105
- private buildSfx;
106
- }
1
+ /**
2
+ * Create a .exe installer that bundles one or more .kmp files, together with
3
+ * setup.exe, keymandesktop.msi, and generates and includes a setup.inf also.
4
+ *
5
+ * This module is effectively deprecated, but is present to keep parity with the
6
+ * legacy kmcomp compiler. Thus, it is included as part of the package compiler,
7
+ * and will be removed in a future version.
8
+ *
9
+ * This tool assumes that the installer .msi is the same version as the
10
+ * compiler, unlike the legacy compiler which read this metadata from the .msi.
11
+ */
12
+ import { CompilerCallbacks, KeymanCompiler, KeymanCompilerArtifact, KeymanCompilerArtifacts, KeymanCompilerResult } from "@keymanapp/common-types";
13
+ import { KmpCompilerOptions } from "./kmp-compiler.js";
14
+ /**
15
+ * @public
16
+ * Sources and metadata for the Windows package installer compiler
17
+ */
18
+ export interface WindowsPackageInstallerSources {
19
+ msiFilename: string;
20
+ setupExeFilename: string;
21
+ licenseFilename: string;
22
+ titleImageFilename?: string;
23
+ appName?: string;
24
+ startDisabled: boolean;
25
+ startWithConfiguration: boolean;
26
+ }
27
+ /**
28
+ * @public
29
+ * Options for the .kps Windows package installer compiler
30
+ */
31
+ export interface WindowsPackageInstallerCompilerOptions extends KmpCompilerOptions {
32
+ /**
33
+ * Sources and metadata for the Windows package installer compiler
34
+ */
35
+ sources: WindowsPackageInstallerSources;
36
+ }
37
+ /**
38
+ * @public
39
+ * Internal in-memory build artifacts from a successful compilation
40
+ */
41
+ export interface WindowsPackageInstallerCompilerArtifacts extends KeymanCompilerArtifacts {
42
+ /**
43
+ * Binary package installer filedata and filename - installable into Keyman
44
+ * desktop and mobile projects
45
+ */
46
+ exe: KeymanCompilerArtifact;
47
+ }
48
+ /**
49
+ * @public
50
+ * Build artifacts from the .kps Windows package installer compiler
51
+ */
52
+ export interface WindowsPackageInstallerCompilerResult extends KeymanCompilerResult {
53
+ /**
54
+ * Internal in-memory build artifacts from a successful compilation. Caller
55
+ * can write these to disk with {@link WindowsPackageInstallerCompiler.write}
56
+ */
57
+ artifacts: WindowsPackageInstallerCompilerArtifacts;
58
+ }
59
+ /**
60
+ * @public
61
+ * Compiles a .kps file to a .exe installer. The compiler does not read or write
62
+ * from filesystem or network directly, but relies on callbacks for all external
63
+ * IO.
64
+ */
65
+ export declare class WindowsPackageInstallerCompiler implements KeymanCompiler {
66
+ private kmpCompiler;
67
+ private callbacks;
68
+ private options;
69
+ /**
70
+ * Initialize the compiler.
71
+ * Copies options.
72
+ * @param callbacks - Callbacks for external interfaces, including message
73
+ * reporting and file io
74
+ * @param options - Compiler options
75
+ * @returns false if initialization fails
76
+ */
77
+ init(callbacks: CompilerCallbacks, options: WindowsPackageInstallerCompilerOptions): Promise<boolean>;
78
+ /**
79
+ * Compiles a .kps file to .exe Windows package installer file. Returns an
80
+ * object containing binary artifacts on success. The files are passed in by
81
+ * name, and the compiler will use callbacks as passed to the
82
+ * {@link WindowsPackageInstallerCompiler.init} function to read any input
83
+ * files by disk.
84
+ * @param infile - Path to source file. Path will be parsed to find relative
85
+ * references in the .kmn file, such as icon or On Screen
86
+ * Keyboard file
87
+ * @param outfile - Path to output file. The file will not be written to, but
88
+ * will be included in the result for use by
89
+ * {@link WindowsPackageInstallerCompiler.write}.
90
+ * @returns Binary artifacts on success, null on failure.
91
+ */
92
+ run(inputFilename: string, outputFilename?: string): Promise<WindowsPackageInstallerCompilerResult>;
93
+ /**
94
+ * Write artifacts from a successful compile to disk, via callbacks methods.
95
+ * The artifacts written may include:
96
+ *
97
+ * - .exe file - binary Windows package installer executable file
98
+ *
99
+ * @param artifacts - object containing artifact binary data to write out
100
+ * @returns true on success
101
+ */
102
+ write(artifacts: WindowsPackageInstallerCompilerArtifacts): Promise<boolean>;
103
+ private buildZip;
104
+ private buildSetupInf;
105
+ private buildSfx;
106
+ }
107
107
  //# sourceMappingURL=windows-package-installer-compiler.d.ts.map
@@ -1,181 +1,178 @@
1
- /**
2
- * Create a .exe installer that bundles one or more .kmp files, together with
3
- * setup.exe, keymandesktop.msi, and generates and includes a setup.inf also.
4
- *
5
- * This module is effectively deprecated, but is present to keep parity with the
6
- * legacy kmcomp compiler. Thus, it is included as part of the package compiler,
7
- * and will be removed in a future version.
8
- *
9
- * This tool assumes that the installer .msi is the same version as the
10
- * compiler, unlike the legacy compiler which read this metadata from the .msi.
11
- */
12
-
13
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="416a1ac8-98e1-51e8-b77b-4b2a264f7ee6")}catch(e){}}();
14
- import JSZip from 'jszip';
15
- import KEYMAN_VERSION from "@keymanapp/keyman-version";
16
- import { KmpCompiler } from "./kmp-compiler.js";
17
- import { CompilerMessages } from "./package-compiler-messages.js";
18
- const SETUP_INF_FILENAME = 'setup.inf';
19
- const PRODUCT_NAME = 'Keyman';
20
- ;
21
- ;
22
- ;
23
- /**
24
- * @public
25
- * Compiles a .kps file to a .exe installer. The compiler does not read or write
26
- * from filesystem or network directly, but relies on callbacks for all external
27
- * IO.
28
- */
29
- export class WindowsPackageInstallerCompiler {
30
- kmpCompiler;
31
- callbacks;
32
- options;
33
- /**
34
- * Initialize the compiler.
35
- * Copies options.
36
- * @param callbacks - Callbacks for external interfaces, including message
37
- * reporting and file io
38
- * @param options - Compiler options
39
- * @returns false if initialization fails
40
- */
41
- async init(callbacks, options) {
42
- this.callbacks = callbacks;
43
- this.options = { ...options };
44
- this.kmpCompiler = new KmpCompiler();
45
- return await this.kmpCompiler.init(callbacks, options);
46
- }
47
- /**
48
- * Compiles a .kps file to .exe Windows package installer file. Returns an
49
- * object containing binary artifacts on success. The files are passed in by
50
- * name, and the compiler will use callbacks as passed to the
51
- * {@link WindowsPackageInstallerCompiler.init} function to read any input
52
- * files by disk.
53
- * @param infile - Path to source file. Path will be parsed to find relative
54
- * references in the .kmn file, such as icon or On Screen
55
- * Keyboard file
56
- * @param outfile - Path to output file. The file will not be written to, but
57
- * will be included in the result for use by
58
- * {@link WindowsPackageInstallerCompiler.write}.
59
- * @returns Binary artifacts on success, null on failure.
60
- */
61
- async run(inputFilename, outputFilename) {
62
- const sources = this.options.sources;
63
- const kps = this.kmpCompiler.loadKpsFile(inputFilename);
64
- if (!kps) {
65
- // errors will already have been reported by loadKpsFile
66
- return null;
67
- }
68
- // Check existence of required files
69
- for (const filename of [sources.licenseFilename, sources.msiFilename, sources.setupExeFilename]) {
70
- if (!this.callbacks.fs.existsSync(filename)) {
71
- this.callbacks.reportMessage(CompilerMessages.Error_FileDoesNotExist({ filename }));
72
- return null;
73
- }
74
- }
75
- // Check existence of optional files
76
- for (const filename of [sources.titleImageFilename]) {
77
- if (filename && !this.callbacks.fs.existsSync(filename)) {
78
- this.callbacks.reportMessage(CompilerMessages.Error_FileDoesNotExist({ filename }));
79
- return null;
80
- }
81
- }
82
- // Note: we never use the MSIFileName field from the .kps any more
83
- // Nor do we use the MSIOptions field.
84
- // Build the zip
85
- const zipBuffer = await this.buildZip(kps, inputFilename, sources);
86
- if (!zipBuffer) {
87
- // Error messages already reported by buildZip
88
- return null;
89
- }
90
- // Build the sfx
91
- const sfxBuffer = this.buildSfx(zipBuffer, sources);
92
- const result = {
93
- artifacts: {
94
- exe: {
95
- data: sfxBuffer,
96
- filename: outputFilename ?? inputFilename.replace(/\.kps$/, '.exe')
97
- }
98
- }
99
- };
100
- return result;
101
- }
102
- /**
103
- * Write artifacts from a successful compile to disk, via callbacks methods.
104
- * The artifacts written may include:
105
- *
106
- * - .exe file - binary Windows package installer executable file
107
- *
108
- * @param artifacts - object containing artifact binary data to write out
109
- * @returns true on success
110
- */
111
- async write(artifacts) {
112
- this.callbacks.fs.writeFileSync(artifacts.exe.filename, artifacts.exe.data);
113
- return true;
114
- }
115
- async buildZip(kps, kpsFilename, sources) {
116
- const kmpJson = this.kmpCompiler.transformKpsFileToKmpObject(kpsFilename, kps);
117
- if (!kmpJson.info?.name?.description) {
118
- this.callbacks.reportMessage(CompilerMessages.Error_PackageNameCannotBeBlank());
119
- return null;
120
- }
121
- const kmpFilename = this.callbacks.path.basename(kpsFilename, ".kps" /* KeymanFileTypes.Source.Package */) + ".kmp" /* KeymanFileTypes.Binary.Package */;
122
- const setupInfBuffer = this.buildSetupInf(sources, kmpJson, kmpFilename, kps);
123
- const kmpBuffer = await this.kmpCompiler.buildKmpFile(kpsFilename, kmpJson);
124
- // Note that this does not technically generate a "valid" sfx according to
125
- // the zip spec, because the offsets in the .zip are relative to the start
126
- // of the zip, rather than to the start of the sfx. However, as Keyman's
127
- // installer chops out the zip from the sfx and loads it in a new stream, it
128
- // works as expected.
129
- const zip = JSZip();
130
- zip.file(SETUP_INF_FILENAME, setupInfBuffer);
131
- zip.file(kmpFilename, kmpBuffer);
132
- zip.file(this.callbacks.path.basename(sources.msiFilename), this.callbacks.loadFile(sources.msiFilename));
133
- zip.file(this.callbacks.path.basename(sources.licenseFilename), this.callbacks.loadFile(sources.licenseFilename));
134
- if (sources.titleImageFilename) {
135
- zip.file(this.callbacks.path.basename(sources.titleImageFilename), this.callbacks.loadFile(sources.titleImageFilename));
136
- }
137
- return zip.generateAsync({ type: 'uint8array', compression: 'DEFLATE' });
138
- }
139
- buildSetupInf(sources, kmpJson, kmpFilename, kps) {
1
+ /**
2
+ * Create a .exe installer that bundles one or more .kmp files, together with
3
+ * setup.exe, keymandesktop.msi, and generates and includes a setup.inf also.
4
+ *
5
+ * This module is effectively deprecated, but is present to keep parity with the
6
+ * legacy kmcomp compiler. Thus, it is included as part of the package compiler,
7
+ * and will be removed in a future version.
8
+ *
9
+ * This tool assumes that the installer .msi is the same version as the
10
+ * compiler, unlike the legacy compiler which read this metadata from the .msi.
11
+ */
12
+ import JSZip from 'jszip';
13
+ import KEYMAN_VERSION from "@keymanapp/keyman-version";
14
+ import { KmpCompiler } from "./kmp-compiler.js";
15
+ import { CompilerMessages } from "./package-compiler-messages.js";
16
+ const SETUP_INF_FILENAME = 'setup.inf';
17
+ const PRODUCT_NAME = 'Keyman';
18
+ ;
19
+ ;
20
+ ;
21
+ /**
22
+ * @public
23
+ * Compiles a .kps file to a .exe installer. The compiler does not read or write
24
+ * from filesystem or network directly, but relies on callbacks for all external
25
+ * IO.
26
+ */
27
+ export class WindowsPackageInstallerCompiler {
28
+ kmpCompiler;
29
+ callbacks;
30
+ options;
31
+ /**
32
+ * Initialize the compiler.
33
+ * Copies options.
34
+ * @param callbacks - Callbacks for external interfaces, including message
35
+ * reporting and file io
36
+ * @param options - Compiler options
37
+ * @returns false if initialization fails
38
+ */
39
+ async init(callbacks, options) {
40
+ this.callbacks = callbacks;
41
+ this.options = { ...options };
42
+ this.kmpCompiler = new KmpCompiler();
43
+ return await this.kmpCompiler.init(callbacks, options);
44
+ }
45
+ /**
46
+ * Compiles a .kps file to .exe Windows package installer file. Returns an
47
+ * object containing binary artifacts on success. The files are passed in by
48
+ * name, and the compiler will use callbacks as passed to the
49
+ * {@link WindowsPackageInstallerCompiler.init} function to read any input
50
+ * files by disk.
51
+ * @param infile - Path to source file. Path will be parsed to find relative
52
+ * references in the .kmn file, such as icon or On Screen
53
+ * Keyboard file
54
+ * @param outfile - Path to output file. The file will not be written to, but
55
+ * will be included in the result for use by
56
+ * {@link WindowsPackageInstallerCompiler.write}.
57
+ * @returns Binary artifacts on success, null on failure.
58
+ */
59
+ async run(inputFilename, outputFilename) {
60
+ const sources = this.options.sources;
61
+ const kps = this.kmpCompiler.loadKpsFile(inputFilename);
62
+ if (!kps) {
63
+ // errors will already have been reported by loadKpsFile
64
+ return null;
65
+ }
66
+ // Check existence of required files
67
+ for (const filename of [sources.licenseFilename, sources.msiFilename, sources.setupExeFilename]) {
68
+ if (!this.callbacks.fs.existsSync(filename)) {
69
+ this.callbacks.reportMessage(CompilerMessages.Error_FileDoesNotExist({ filename }));
70
+ return null;
71
+ }
72
+ }
73
+ // Check existence of optional files
74
+ for (const filename of [sources.titleImageFilename]) {
75
+ if (filename && !this.callbacks.fs.existsSync(filename)) {
76
+ this.callbacks.reportMessage(CompilerMessages.Error_FileDoesNotExist({ filename }));
77
+ return null;
78
+ }
79
+ }
80
+ // Note: we never use the MSIFileName field from the .kps any more
81
+ // Nor do we use the MSIOptions field.
82
+ // Build the zip
83
+ const zipBuffer = await this.buildZip(kps, inputFilename, sources);
84
+ if (!zipBuffer) {
85
+ // Error messages already reported by buildZip
86
+ return null;
87
+ }
88
+ // Build the sfx
89
+ const sfxBuffer = this.buildSfx(zipBuffer, sources);
90
+ const result = {
91
+ artifacts: {
92
+ exe: {
93
+ data: sfxBuffer,
94
+ filename: outputFilename ?? inputFilename.replace(/\.kps$/, '.exe')
95
+ }
96
+ }
97
+ };
98
+ return result;
99
+ }
100
+ /**
101
+ * Write artifacts from a successful compile to disk, via callbacks methods.
102
+ * The artifacts written may include:
103
+ *
104
+ * - .exe file - binary Windows package installer executable file
105
+ *
106
+ * @param artifacts - object containing artifact binary data to write out
107
+ * @returns true on success
108
+ */
109
+ async write(artifacts) {
110
+ this.callbacks.fs.writeFileSync(artifacts.exe.filename, artifacts.exe.data);
111
+ return true;
112
+ }
113
+ async buildZip(kps, kpsFilename, sources) {
114
+ const kmpJson = this.kmpCompiler.transformKpsFileToKmpObject(kpsFilename, kps);
115
+ if (!kmpJson.info?.name?.description) {
116
+ this.callbacks.reportMessage(CompilerMessages.Error_PackageNameCannotBeBlank());
117
+ return null;
118
+ }
119
+ const kmpFilename = this.callbacks.path.basename(kpsFilename, ".kps" /* KeymanFileTypes.Source.Package */) + ".kmp" /* KeymanFileTypes.Binary.Package */;
120
+ const setupInfBuffer = this.buildSetupInf(sources, kmpJson, kmpFilename, kps);
121
+ const kmpBuffer = await this.kmpCompiler.buildKmpFile(kpsFilename, kmpJson);
122
+ // Note that this does not technically generate a "valid" sfx according to
123
+ // the zip spec, because the offsets in the .zip are relative to the start
124
+ // of the zip, rather than to the start of the sfx. However, as Keyman's
125
+ // installer chops out the zip from the sfx and loads it in a new stream, it
126
+ // works as expected.
127
+ const zip = JSZip();
128
+ zip.file(SETUP_INF_FILENAME, setupInfBuffer);
129
+ zip.file(kmpFilename, kmpBuffer);
130
+ zip.file(this.callbacks.path.basename(sources.msiFilename), this.callbacks.loadFile(sources.msiFilename));
131
+ zip.file(this.callbacks.path.basename(sources.licenseFilename), this.callbacks.loadFile(sources.licenseFilename));
132
+ if (sources.titleImageFilename) {
133
+ zip.file(this.callbacks.path.basename(sources.titleImageFilename), this.callbacks.loadFile(sources.titleImageFilename));
134
+ }
135
+ return zip.generateAsync({ type: 'uint8array', compression: 'DEFLATE' });
136
+ }
137
+ buildSetupInf(sources, kmpJson, kmpFilename, kps) {
140
138
  let setupInf = `[Setup]
141
139
  Version=${KEYMAN_VERSION.VERSION}
142
140
  MSIFileName=${this.callbacks.path.basename(sources.msiFilename)}
143
141
  MSIOptions=
144
142
  AppName=${sources.appName ?? PRODUCT_NAME}
145
143
  License=${this.callbacks.path.basename(sources.licenseFilename)}
146
- `;
147
- if (sources.titleImageFilename) {
148
- setupInf += `TitleImage=${this.callbacks.path.basename(sources.titleImageFilename)}\n`;
149
- }
150
- if (kmpJson.options.graphicFile) {
151
- setupInf += `BitmapFileName=${this.callbacks.path.basename(kmpJson.options.graphicFile)}\n`;
152
- }
153
- if (sources.startDisabled) {
154
- setupInf += `StartDisabled=True\n`;
155
- }
156
- if (sources.startWithConfiguration) {
157
- setupInf += `StartWithConfiguration=True\n`;
158
- }
159
- setupInf += `\n[Packages]\n`;
160
- setupInf += kmpFilename + '\n';
161
- // TODO: multiple packages?
162
- const strings = !kps.Strings?.String ? [] : (Array.isArray(kps.Strings.String) ? kps.Strings.String : [kps.Strings.String]);
163
- if (strings.length) {
164
- setupInf += `\n[Strings]\n`;
165
- for (const str of strings) {
166
- setupInf += `${str.$?.Name}=${str.$?.Value}\n`;
167
- }
168
- }
169
- const setupInfBuffer = new TextEncoder().encode(setupInf);
170
- return setupInfBuffer;
171
- }
172
- buildSfx(zipBuffer, sources) {
173
- const setupRedistBuffer = this.callbacks.loadFile(sources.setupExeFilename);
174
- const buffer = new Uint8Array(setupRedistBuffer.length + zipBuffer.length);
175
- buffer.set(setupRedistBuffer, 0);
176
- buffer.set(zipBuffer, setupRedistBuffer.length);
177
- return buffer;
178
- }
179
- }
180
- //# sourceMappingURL=windows-package-installer-compiler.js.map
181
- //# debugId=416a1ac8-98e1-51e8-b77b-4b2a264f7ee6
144
+ `;
145
+ if (sources.titleImageFilename) {
146
+ setupInf += `TitleImage=${this.callbacks.path.basename(sources.titleImageFilename)}\n`;
147
+ }
148
+ if (kmpJson.options.graphicFile) {
149
+ setupInf += `BitmapFileName=${this.callbacks.path.basename(kmpJson.options.graphicFile)}\n`;
150
+ }
151
+ if (sources.startDisabled) {
152
+ setupInf += `StartDisabled=True\n`;
153
+ }
154
+ if (sources.startWithConfiguration) {
155
+ setupInf += `StartWithConfiguration=True\n`;
156
+ }
157
+ setupInf += `\n[Packages]\n`;
158
+ setupInf += kmpFilename + '\n';
159
+ // TODO: multiple packages?
160
+ const strings = !kps.Strings?.String ? [] : (Array.isArray(kps.Strings.String) ? kps.Strings.String : [kps.Strings.String]);
161
+ if (strings.length) {
162
+ setupInf += `\n[Strings]\n`;
163
+ for (const str of strings) {
164
+ setupInf += `${str.$?.Name}=${str.$?.Value}\n`;
165
+ }
166
+ }
167
+ const setupInfBuffer = new TextEncoder().encode(setupInf);
168
+ return setupInfBuffer;
169
+ }
170
+ buildSfx(zipBuffer, sources) {
171
+ const setupRedistBuffer = this.callbacks.loadFile(sources.setupExeFilename);
172
+ const buffer = new Uint8Array(setupRedistBuffer.length + zipBuffer.length);
173
+ buffer.set(setupRedistBuffer, 0);
174
+ buffer.set(zipBuffer, setupRedistBuffer.length);
175
+ return buffer;
176
+ }
177
+ }
178
+ //# sourceMappingURL=windows-package-installer-compiler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"windows-package-installer-compiler.js","sources":["../../../src/compiler/windows-package-installer-compiler.ts"],"sourceRoot":"","names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAsB,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,kBAAkB,GAAG,WAAW,CAAC;AACvC,MAAM,YAAY,GAAG,QAAQ,CAAC;AAe7B,CAAC;AAuBD,CAAC;AAYD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,+BAA+B;IAClC,WAAW,CAAc;IACzB,SAAS,CAAoB;IAC7B,OAAO,CAAyC;IAExD;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CAAC,SAA4B,EAAE,OAA+C;QACtF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,EAAC,GAAG,OAAO,EAAC,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;QACrC,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,GAAG,CAAC,aAAqB,EAAE,cAAuB;QAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QACxD,IAAG,CAAC,GAAG,EAAE;YACP,wDAAwD;YACxD,OAAO,IAAI,CAAC;SACb;QAED,oCAAoC;QACpC,KAAI,MAAM,QAAQ,IAAI,CAAC,OAAO,CA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,CAAC;CACF","debug_id":"416a1ac8-98e1-51e8-b77b-4b2a264f7ee6"}
1
+ {"version":3,"file":"windows-package-installer-compiler.js","sourceRoot":"","sources":["../../../src/compiler/windows-package-installer-compiler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAsB,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,kBAAkB,GAAG,WAAW,CAAC;AACvC,MAAM,YAAY,GAAG,QAAQ,CAAC;AAe7B,CAAC;AAuBD,CAAC;AAYD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,+BAA+B;IAClC,WAAW,CAAc;IACzB,SAAS,CAAoB;IAC7B,OAAO,CAAyC;IAExD;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CAAC,SAA4B,EAAE,OAA+C;QACtF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,EAAC,GAAG,OAAO,EAAC,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;QACrC,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,KAAK,CAAC,GAAG,CAAC,aAAqB,EAAE,cAAuB;QAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QACxD,IAAG,CAAC,GAAG,EAAE,CAAC;YACR,wDAAwD;YACxD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,oCAAoC;QACpC,KAAI,MAAM,QAAQ,IAA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C,CAAC;QAC3E,MAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAChD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- export { KmpCompiler, KmpCompilerOptions, KmpCompilerResult, KmpCompilerArtifacts } from "./compiler/kmp-compiler.js";
2
- export { PackageValidation } from "./compiler/package-validation.js";
3
- export { WindowsPackageInstallerSources, WindowsPackageInstallerCompiler, WindowsPackageInstallerCompilerOptions, WindowsPackageInstallerCompilerResult, WindowsPackageInstallerCompilerArtifacts, } from "./compiler/windows-package-installer-compiler.js";
4
- export { CompilerMessages as PackageCompilerMessages } from './compiler/package-compiler-messages.js';
1
+ export { KmpCompiler, KmpCompilerOptions, KmpCompilerResult, KmpCompilerArtifacts } from "./compiler/kmp-compiler.js";
2
+ export { PackageValidation } from "./compiler/package-validation.js";
3
+ export { WindowsPackageInstallerSources, WindowsPackageInstallerCompiler, WindowsPackageInstallerCompilerOptions, WindowsPackageInstallerCompilerResult, WindowsPackageInstallerCompilerArtifacts, } from "./compiler/windows-package-installer-compiler.js";
4
+ export { CompilerMessages as PackageCompilerMessages } from './compiler/package-compiler-messages.js';
5
5
  //# sourceMappingURL=main.d.ts.map
package/build/src/main.js CHANGED
@@ -1,8 +1,5 @@
1
-
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b7b71e3a-7073-54de-95a4-1d0917c8245c")}catch(e){}}();
3
- export { KmpCompiler } from "./compiler/kmp-compiler.js";
4
- export { PackageValidation } from "./compiler/package-validation.js";
5
- export { WindowsPackageInstallerCompiler, } from "./compiler/windows-package-installer-compiler.js";
6
- export { CompilerMessages as PackageCompilerMessages } from './compiler/package-compiler-messages.js';
7
- //# sourceMappingURL=main.js.map
8
- //# debugId=b7b71e3a-7073-54de-95a4-1d0917c8245c
1
+ export { KmpCompiler } from "./compiler/kmp-compiler.js";
2
+ export { PackageValidation } from "./compiler/package-validation.js";
3
+ export { WindowsPackageInstallerCompiler, } from "./compiler/windows-package-installer-compiler.js";
4
+ export { CompilerMessages as PackageCompilerMessages } from './compiler/package-compiler-messages.js';
5
+ //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../../src/main.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAA+D,MAAM,4BAA4B,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAEL,+BAA+B,GAIhC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,MAAM,yCAAyC,CAAC","debug_id":"b7b71e3a-7073-54de-95a4-1d0917c8245c"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA+D,MAAM,4BAA4B,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAEL,+BAA+B,GAIhC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,MAAM,yCAAyC,CAAC"}