@gtkx/config 2.0.0-beta.13 → 2.0.0-beta.15

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.
package/dist/deploy.d.ts CHANGED
@@ -1,34 +1,75 @@
1
1
  import { z } from "zod";
2
2
  /** Package relations of one kind, such as dependencies, in Debian and RPM dependency syntax. */
3
3
  type DeployPackageRelationOptions = {
4
- /** Package relations expressed in Debian dependency syntax. */
4
+ /**
5
+ * Package relations expressed in Debian dependency syntax.
6
+ *
7
+ * @defaultValue `[]`
8
+ */
5
9
  deb?: string[] | undefined;
6
- /** Package relations expressed in RPM dependency syntax. */
10
+ /**
11
+ * Package relations expressed in RPM dependency syntax.
12
+ *
13
+ * @defaultValue `[]`
14
+ */
7
15
  rpm?: string[] | undefined;
8
16
  };
9
17
  /** Package relations of a kind only Debian packages have, in Debian dependency syntax. */
10
18
  type DeployDebPackageRelationOptions = {
11
- /** Package relations expressed in Debian dependency syntax. RPM has no equivalent relation. */
19
+ /**
20
+ * Package relations expressed in Debian dependency syntax. RPM has no equivalent relation.
21
+ *
22
+ * @defaultValue `[]`
23
+ */
12
24
  deb?: string[] | undefined;
13
25
  };
14
26
  /** The `deploy.developer` options: who develops and maintains the application. */
15
27
  type DeployDeveloperOptions = {
16
- /** Reverse-DNS developer identifier, derived from the application ID when omitted. */
28
+ /**
29
+ * Reverse-DNS developer identifier.
30
+ *
31
+ * @defaultValue The application ID without its last segment, such as `com.example` for `com.example.Tasks`;
32
+ * none when the application ID has only two segments
33
+ */
17
34
  id?: string | undefined;
18
- /** Developer or organization name. Defaults to the author in package.json. */
35
+ /**
36
+ * Developer or organization name. Deployment fails when neither this nor the `package.json` author is set.
37
+ *
38
+ * @defaultValue The `author` name in `package.json`
39
+ */
19
40
  name?: string | undefined;
20
- /** Maintainer email address. Defaults to the author's email in package.json. */
41
+ /**
42
+ * Maintainer email address.
43
+ *
44
+ * @defaultValue The `author` email in `package.json`, if it has one
45
+ */
21
46
  email?: string | undefined;
22
47
  };
23
48
  /** One software-center screenshot in `deploy.screenshots`. Either `url` or `file` must be set. */
24
49
  type DeployScreenshotOptions = {
25
- /** Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`. */
50
+ /**
51
+ * Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`.
52
+ *
53
+ * @defaultValue None; each entry sets `url` or `file`
54
+ */
26
55
  url?: string | undefined;
27
- /** Screenshot path relative to the project root, resolved against `screenshotBaseUrl`. */
56
+ /**
57
+ * Screenshot path relative to the project root, resolved against `screenshotBaseUrl`.
58
+ *
59
+ * @defaultValue None; each entry sets `url` or `file`
60
+ */
28
61
  file?: string | undefined;
29
- /** Caption displayed with the screenshot in software centers. */
62
+ /**
63
+ * Caption displayed with the screenshot in software centers.
64
+ *
65
+ * @defaultValue None: the screenshot has no `caption`
66
+ */
30
67
  caption?: string | undefined;
31
- /** Marks the primary screenshot. Only the first entry set to `true` is used. */
68
+ /**
69
+ * Marks the primary screenshot. Only the first entry set to `true` is used.
70
+ *
71
+ * @defaultValue `false`; when no entry sets it, no screenshot is marked primary
72
+ */
32
73
  isDefault?: boolean | undefined;
33
74
  };
34
75
  /** One AppStream release-history entry in `deploy.releases`. */
@@ -37,13 +78,29 @@ type DeployReleaseOptions = {
37
78
  version: string;
38
79
  /** Release date in `YYYY-MM-DD` format. */
39
80
  date: string;
40
- /** AppStream release classification. */
81
+ /**
82
+ * AppStream release classification.
83
+ *
84
+ * @defaultValue None: the release has no `type` attribute, which AppStream reads as `stable`
85
+ */
41
86
  type?: "development" | "snapshot" | "stable" | undefined;
42
- /** AppStream update urgency. */
87
+ /**
88
+ * AppStream update urgency.
89
+ *
90
+ * @defaultValue None: the release has no `urgency` attribute
91
+ */
43
92
  urgency?: "critical" | "high" | "low" | "medium" | undefined;
44
- /** Release notes, with each entry rendered as a paragraph. */
93
+ /**
94
+ * Release notes, with each entry rendered as a paragraph.
95
+ *
96
+ * @defaultValue `[]`
97
+ */
45
98
  notes?: string[] | undefined;
46
- /** Absolute URL containing further details about the release. */
99
+ /**
100
+ * Absolute URL containing further details about the release.
101
+ *
102
+ * @defaultValue None: the release has no `url` element
103
+ */
47
104
  url?: string | undefined;
48
105
  };
49
106
  /** One file extension and MIME type registered through `deploy.fileAssociations`. */
@@ -52,7 +109,11 @@ type DeployFileAssociationOptions = {
52
109
  extension: string;
53
110
  /** MIME type registered for the file extension. */
54
111
  mimeType: string;
55
- /** Human-readable description of the file type. */
112
+ /**
113
+ * Human-readable description of the file type.
114
+ *
115
+ * @defaultValue None: the MIME type has no `comment`
116
+ */
56
117
  description?: string | undefined;
57
118
  };
58
119
  /** One desktop launcher action in `deploy.desktopActions`, keyed by its action ID. */
@@ -62,9 +123,15 @@ type DeployDesktopActionOptions = {
62
123
  /**
63
124
  * Arguments appended to the launch command when the action is chosen. Launchers activate the `app.<id>`
64
125
  * application action of a D-Bus-activatable application instead of running this command.
126
+ *
127
+ * @defaultValue `[]`
65
128
  */
66
129
  args?: string[] | undefined;
67
- /** Icon theme name used for the action. */
130
+ /**
131
+ * Icon theme name used for the action.
132
+ *
133
+ * @defaultValue None: the action has no `Icon` key
134
+ */
68
135
  icon?: string | undefined;
69
136
  };
70
137
  /** The `deploy.branding` colors software centers use around the application's listing. */
@@ -81,7 +148,11 @@ type DeployBrandingOptions = {
81
148
  type DeployExtraFileOptions = {
82
149
  /** Source file or directory path, resolved relative to the project root. */
83
150
  source: string;
84
- /** Octal file mode, applied to every file of a directory source. Setuid and setgid bits are rejected. */
151
+ /**
152
+ * Octal file mode, applied to every file of a directory source. Setuid and setgid bits are rejected.
153
+ *
154
+ * @defaultValue `"0755"` for a file whose source is executable, `"0644"` otherwise
155
+ */
85
156
  mode?: string | undefined;
86
157
  };
87
158
  /**
@@ -89,15 +160,35 @@ type DeployExtraFileOptions = {
89
160
  * is expected to be, whether its binary is stripped, and whether the launcher enables the compile cache.
90
161
  */
91
162
  type DeployNodeOptions = {
92
- /** Runtime source: an official download, the running Node.js executable, or `path`. Defaults to `download`. */
163
+ /**
164
+ * Runtime source: an official download, the running Node.js executable, or `path`.
165
+ *
166
+ * @defaultValue `"download"`
167
+ */
93
168
  source?: "download" | "host" | "path" | undefined;
94
- /** Expected Node.js version. Downloaded runtimes default to exactly 26.8.2 when omitted. */
169
+ /**
170
+ * Expected Node.js version. Only a downloaded runtime uses it.
171
+ *
172
+ * @defaultValue `"26.8.2"` for a downloaded runtime
173
+ */
95
174
  version?: string | undefined;
96
- /** Node.js executable path relative to the project root, required when `source` is `path`. */
175
+ /**
176
+ * Node.js executable path relative to the project root, required when `source` is `path`.
177
+ *
178
+ * @defaultValue None; required when `source` is `"path"`
179
+ */
97
180
  path?: string | undefined;
98
- /** Strip the runtime when its architecture matches the host and `strip` is available. Defaults to `true`. */
181
+ /**
182
+ * Strip the runtime when its architecture matches the host and `strip` is available.
183
+ *
184
+ * @defaultValue `true`
185
+ */
99
186
  shouldStrip?: boolean | undefined;
100
- /** Enable Node.js compile caching in the generated launcher. Defaults to `true`. */
187
+ /**
188
+ * Enable Node.js compile caching in the generated launcher.
189
+ *
190
+ * @defaultValue `true`
191
+ */
101
192
  shouldUseCompileCache?: boolean | undefined;
102
193
  };
103
194
  /**
@@ -105,125 +196,319 @@ type DeployNodeOptions = {
105
196
  * shell script file, not inline shell; the package carries the file's content.
106
197
  */
107
198
  type DeployScriptsOptions = {
108
- /** Path to a shell script, relative to the project root, run before installing a Debian or RPM package. */
199
+ /**
200
+ * Path to a shell script, relative to the project root, run before installing a Debian or RPM package.
201
+ *
202
+ * @defaultValue None: `gtkx deploy` adds no script for this step
203
+ */
109
204
  preInstall?: string | undefined;
110
- /** Path to a shell script, relative to the project root, run after installing a Debian or RPM package. */
205
+ /**
206
+ * Path to a shell script, relative to the project root, run after installing a Debian or RPM package.
207
+ *
208
+ * @defaultValue None: `gtkx deploy` adds no script for this step
209
+ */
111
210
  postInstall?: string | undefined;
112
- /** Path to a shell script, relative to the project root, run before removing a Debian or RPM package. */
211
+ /**
212
+ * Path to a shell script, relative to the project root, run before removing a Debian or RPM package.
213
+ *
214
+ * @defaultValue None: `gtkx deploy` adds no script for this step
215
+ */
113
216
  preRemove?: string | undefined;
114
- /** Path to a shell script, relative to the project root, run after removing a Debian or RPM package. */
217
+ /**
218
+ * Path to a shell script, relative to the project root, run after removing a Debian or RPM package.
219
+ *
220
+ * @defaultValue None: `gtkx deploy` adds no script for this step
221
+ */
115
222
  postRemove?: string | undefined;
116
223
  };
117
224
  /** The `deploy.tools` options: executables `gtkx deploy` runs instead of the ones it downloads. */
118
225
  type DeployToolsOptions = {
119
- /** nFPM executable name or path relative to the project root. Defaults to a verified pinned download. */
226
+ /**
227
+ * nFPM executable name or path relative to the project root.
228
+ *
229
+ * @defaultValue A pinned nFPM release that `gtkx deploy` downloads and verifies against its `sha256`
230
+ */
120
231
  nfpm?: string | undefined;
121
232
  };
122
233
  /** The `deploy.deb` options: Debian package metadata and compression. */
123
234
  type DeployDebOptions = {
124
- /** Debian package name. Defaults to `deploy.binaryName`. */
235
+ /**
236
+ * Debian package name.
237
+ *
238
+ * @defaultValue `deploy.binaryName`
239
+ */
125
240
  packageName?: string | undefined;
126
- /** Debian archive section, derived from the application categories when omitted. */
241
+ /**
242
+ * Debian archive section.
243
+ *
244
+ * @defaultValue Derived from `deploy.categories`, such as `devel` for `Development`, or `misc` when no
245
+ * category matches
246
+ */
127
247
  section?: string | undefined;
128
- /** Debian package priority. Defaults to `optional`. */
248
+ /**
249
+ * Debian package priority.
250
+ *
251
+ * @defaultValue `"optional"`
252
+ */
129
253
  priority?: string | undefined;
130
- /** Compression used for the Debian package payload. */
254
+ /**
255
+ * Compression used for the Debian package payload.
256
+ *
257
+ * @defaultValue nFPM's default, `gzip`
258
+ */
131
259
  compression?: "gzip" | "none" | "xz" | "zstd" | undefined;
132
- /** Additional Debian control fields, keyed by field name. */
260
+ /**
261
+ * Additional Debian control fields, keyed by field name.
262
+ *
263
+ * @defaultValue `{}`
264
+ */
133
265
  fields?: Record<string, string> | undefined;
134
266
  };
135
267
  /** The `deploy.rpm` options: RPM package metadata and compression. */
136
268
  type DeployRpmOptions = {
137
- /** RPM package name. Defaults to `deploy.binaryName`. */
269
+ /**
270
+ * RPM package name.
271
+ *
272
+ * @defaultValue `deploy.binaryName`
273
+ */
138
274
  packageName?: string | undefined;
139
- /** RPM package group, derived from the application categories when omitted. */
275
+ /**
276
+ * RPM package group.
277
+ *
278
+ * @defaultValue Derived from `deploy.categories`, or `Applications/System` when no category matches
279
+ */
140
280
  group?: string | undefined;
141
- /** Compression used for the RPM package payload. */
281
+ /**
282
+ * Compression used for the RPM package payload.
283
+ *
284
+ * @defaultValue nFPM's default, `gzip`
285
+ */
142
286
  compression?: "gzip" | "lzma" | "xz" | "zstd" | undefined;
143
- /** Installation prefixes that the RPM package allows users to relocate. */
287
+ /**
288
+ * Installation prefixes that the RPM package allows users to relocate.
289
+ *
290
+ * @defaultValue `[]`: the package is not relocatable
291
+ */
144
292
  prefixes?: string[] | undefined;
145
293
  };
146
294
  /** The `deploy.appimage` options: AppImage file name, compression, update information and runtime. */
147
295
  type DeployAppImageOptions = {
148
- /** Output file name, derived from the application name, version, and architecture when omitted. */
296
+ /**
297
+ * Output file name.
298
+ *
299
+ * @defaultValue `<name>-<version>-<arch>.AppImage`, with spaces in the display name replaced by underscores,
300
+ * such as `My_App-1.2.0-x86_64.AppImage`
301
+ */
149
302
  fileName?: string | undefined;
150
- /** Compression explicitly requested from appimagetool. */
303
+ /**
304
+ * Compression explicitly requested from appimagetool.
305
+ *
306
+ * @defaultValue None: appimagetool's own default, as GTKX passes no `--comp`
307
+ */
151
308
  compression?: "zstd" | undefined;
152
- /** AppImage update information string embedded in the executable. */
309
+ /**
310
+ * AppImage update information string embedded in the executable.
311
+ *
312
+ * @defaultValue None: the AppImage embeds no update information, as GTKX passes no `-u`
313
+ */
153
314
  updateInformation?: string | undefined;
154
- /** Custom AppImage runtime file path, resolved relative to the project root. */
315
+ /**
316
+ * Custom AppImage runtime file path, resolved relative to the project root.
317
+ *
318
+ * @defaultValue A pinned `type2-runtime` release that `gtkx deploy` downloads and verifies against its
319
+ * `sha256`
320
+ */
155
321
  runtimeFile?: string | undefined;
156
322
  };
157
323
  /** The `deploy.flatpak.source` options: the Git revision a source-mode Flatpak builds. */
158
324
  type DeployFlatpakSourceOptions = {
159
- /** Public HTTP or HTTPS Git repository URL. Defaults to the project's Git remote. */
325
+ /**
326
+ * Public HTTP or HTTPS Git repository URL.
327
+ *
328
+ * @defaultValue The URL of the project's `origin` Git remote
329
+ */
160
330
  url?: string | undefined;
161
- /** Git tag to build, pinned to its commit when `commit` is omitted. */
331
+ /**
332
+ * Git tag to build, pinned to its commit when `commit` is omitted.
333
+ *
334
+ * @defaultValue The tag that points at `HEAD`, if any, when `commit` is also omitted
335
+ */
162
336
  tag?: string | undefined;
163
- /** Git commit to build. Defaults to the configured tag's commit or the current HEAD. */
337
+ /**
338
+ * Git commit to build.
339
+ *
340
+ * @defaultValue The commit of `tag`, or the current `HEAD` without one
341
+ */
164
342
  commit?: string | undefined;
165
343
  };
166
344
  /** The `deploy.flatpak` options: runtime, sandbox permissions, build and distribution of the Flatpak. */
167
345
  type DeployFlatpakOptions = {
168
- /** Package local build output or build from a pinned Git source inside the SDK. Defaults to `prebuilt`. */
346
+ /**
347
+ * Package local build output or build from a pinned Git source inside the SDK.
348
+ *
349
+ * @defaultValue `"prebuilt"`
350
+ */
169
351
  mode?: "prebuilt" | "source" | undefined;
170
- /** Flatpak runtime ID. Defaults to `org.gnome.Platform`. */
352
+ /**
353
+ * Flatpak runtime ID.
354
+ *
355
+ * @defaultValue `"org.gnome.Platform"`
356
+ */
171
357
  runtime?: string | undefined;
172
- /** Flatpak runtime branch. Defaults to `51`. */
358
+ /**
359
+ * Flatpak runtime branch.
360
+ *
361
+ * @defaultValue `"51"`
362
+ */
173
363
  runtimeVersion?: string | undefined;
174
- /** Build SDK ID. Defaults to `org.gnome.Sdk`. */
364
+ /**
365
+ * Build SDK ID.
366
+ *
367
+ * @defaultValue `"org.gnome.Sdk"`
368
+ */
175
369
  sdk?: string | undefined;
176
- /** Node.js SDK extension used in source mode. Defaults to `org.freedesktop.Sdk.Extension.node26`. */
370
+ /**
371
+ * Node.js SDK extension used in source mode.
372
+ *
373
+ * @defaultValue `"org.freedesktop.Sdk.Extension.node26"`
374
+ */
177
375
  nodeExtension?: string | undefined;
178
- /** Additional SDK extension IDs included in the build environment. */
376
+ /**
377
+ * Additional SDK extension IDs included in the build environment.
378
+ *
379
+ * @defaultValue `[]`
380
+ */
179
381
  sdkExtensions?: string[] | undefined;
180
- /** Optional Flatpak base application ID. */
382
+ /**
383
+ * Optional Flatpak base application ID.
384
+ *
385
+ * @defaultValue None: the manifest has no `base`
386
+ */
181
387
  base?: string | undefined;
182
- /** Branch of the base application. */
388
+ /**
389
+ * Branch of the base application.
390
+ *
391
+ * @defaultValue None: the manifest has no `base-version`
392
+ */
183
393
  baseVersion?: string | undefined;
184
- /** Exported application branch. Defaults to `stable`. */
394
+ /**
395
+ * Exported application branch.
396
+ *
397
+ * @defaultValue `"stable"`
398
+ */
185
399
  branch?: string | undefined;
186
- /** Sandbox permissions added to display, IPC, and GPU defaults. Negations remove matching defaults. */
400
+ /**
401
+ * Sandbox permissions added to the defaults. A negation such as `--nosocket=fallback-x11` removes the
402
+ * matching default.
403
+ *
404
+ * @defaultValue `[]`, on top of `--share=ipc`, `--socket=wayland`, `--socket=fallback-x11` and
405
+ * `--device=dri`
406
+ * @example
407
+ * ```ts
408
+ * finishArgs: ["--share=network", "--filesystem=xdg-documents"],
409
+ * ```
410
+ */
187
411
  finishArgs?: string[] | undefined;
188
- /** Patterns added to header, pkg-config, and static-library cleanup defaults. An empty array disables cleanup. */
412
+ /**
413
+ * Patterns added to the cleanup defaults. An empty array disables cleanup.
414
+ *
415
+ * @defaultValue `[]`, on top of `/include`, `/share/pkgconfig`, `*.la` and `*.a`
416
+ */
189
417
  cleanup?: string[] | undefined;
190
- /** Additional shell commands appended to the application's Flatpak build commands. */
418
+ /**
419
+ * Additional shell commands appended to the application's Flatpak build commands.
420
+ *
421
+ * @defaultValue `[]`
422
+ */
191
423
  buildCommands?: string[] | undefined;
192
- /** Additional Flatpak manifest modules built before the application module. */
424
+ /**
425
+ * Additional Flatpak manifest modules built before the application module.
426
+ *
427
+ * @defaultValue `[]`
428
+ */
193
429
  modules?: unknown[] | undefined;
194
- /** Git repository and revision used for source builds. */
430
+ /**
431
+ * Git repository and revision used for source builds.
432
+ *
433
+ * @defaultValue `{}`: the `origin` remote at the tagged or current commit
434
+ */
195
435
  source?: DeployFlatpakSourceOptions | undefined;
196
- /** Package manager used for offline source builds, detected from the project's lockfiles when omitted. */
436
+ /**
437
+ * Package manager used for offline source builds.
438
+ *
439
+ * @defaultValue Detected from the first lockfile found: `pnpm-lock.yaml`, `yarn.lock`, then
440
+ * `package-lock.json`
441
+ */
197
442
  packageManager?: "npm" | "pnpm" | "yarn" | undefined;
198
- /** Lockfile path relative to the project root. Defaults to the selected package manager's standard lockfile. */
443
+ /**
444
+ * Lockfile path relative to the project root.
445
+ *
446
+ * @defaultValue The package manager's standard lockfile, such as `pnpm-lock.yaml`
447
+ */
199
448
  lockfile?: string | undefined;
200
- /** Runtime repository URL embedded in the bundle. Defaults to Flathub's `.flatpakrepo` URL. */
449
+ /**
450
+ * Runtime repository URL embedded in the bundle.
451
+ *
452
+ * @defaultValue `"https://dl.flathub.org/repo/flathub.flatpakrepo"`
453
+ */
201
454
  runtimeRepo?: string | undefined;
202
- /** Emit a `.flatpak` bundle in addition to the local repository. Defaults to `true`. */
455
+ /**
456
+ * Emit a `.flatpak` bundle in addition to the local repository.
457
+ *
458
+ * @defaultValue `true`
459
+ */
203
460
  shouldEmitBundle?: boolean | undefined;
204
- /** Install the built application into the current user's Flatpak installation. Defaults to `false`. */
461
+ /**
462
+ * Install the built application into the current user's Flatpak installation.
463
+ *
464
+ * @defaultValue `false`
465
+ */
205
466
  shouldInstall?: boolean | undefined;
206
- /** Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable. */
467
+ /**
468
+ * Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable.
469
+ *
470
+ * @defaultValue `true`
471
+ */
207
472
  shouldUseRofilesFuse?: boolean | undefined;
208
473
  };
209
474
  /** The `deploy.signing.deb` options: the key and method that sign the Debian package. */
210
475
  type DeployDebSigningOptions = {
211
476
  /** PGP private key file used to sign the Debian package. */
212
477
  keyFile: string;
213
- /** PGP signing key ID. */
478
+ /**
479
+ * PGP signing key ID.
480
+ *
481
+ * @defaultValue nFPM's choice: the first subkey of `keyFile` that can sign
482
+ */
214
483
  keyId?: string | undefined;
215
- /** Debian package signing method. */
484
+ /**
485
+ * Debian package signing method.
486
+ *
487
+ * @defaultValue nFPM's default, `"debsign"`
488
+ */
216
489
  method?: "debsign" | "dpkg-sig" | undefined;
217
- /** Debian signature role. */
490
+ /**
491
+ * Debian signature role.
492
+ *
493
+ * @defaultValue nFPM's default, `"origin"`
494
+ */
218
495
  type?: "archive" | "maint" | "origin" | undefined;
219
- /** Name and email address recorded as the signer. */
496
+ /**
497
+ * Name and email address recorded as the signer.
498
+ *
499
+ * @defaultValue None: GTKX passes no `signer` to nFPM
500
+ */
220
501
  signer?: string | undefined;
221
502
  };
222
503
  /** The `deploy.signing.rpm` options: the key that signs the RPM package. */
223
504
  type DeployRpmSigningOptions = {
224
505
  /** PGP private key file used to sign the RPM package. */
225
506
  keyFile: string;
226
- /** PGP signing key ID. */
507
+ /**
508
+ * PGP signing key ID.
509
+ *
510
+ * @defaultValue nFPM's choice: the first subkey of `keyFile` that can sign
511
+ */
227
512
  keyId?: string | undefined;
228
513
  };
229
514
  /** The `deploy.signing.flatpak` options: the GPG key that signs the Flatpak repository commit. */
@@ -233,7 +518,11 @@ type DeployFlatpakSigningOptions = {
233
518
  * `flatpak install --bundle` verifies the signature.
234
519
  */
235
520
  gpgKeyId: string;
236
- /** GPG home directory containing the signing key. */
521
+ /**
522
+ * GPG home directory containing the signing key, passed to GPG as given.
523
+ *
524
+ * @defaultValue GPG's default, `$GNUPGHOME` or `~/.gnupg`
525
+ */
237
526
  gpgHomeDir?: string | undefined;
238
527
  };
239
528
  /** The `deploy.signing.appimage` options: the GPG key that signs the AppImage. */
@@ -243,109 +532,321 @@ type DeployAppImageSigningOptions = {
243
532
  };
244
533
  /** The `deploy.signing` options: how each package format is signed. Formats without an entry stay unsigned. */
245
534
  type DeploySigningOptions = {
246
- /** AppImage signing options. */
535
+ /**
536
+ * AppImage signing options.
537
+ *
538
+ * @defaultValue None: `gtkx deploy` leaves this format unsigned
539
+ */
247
540
  appimage?: DeployAppImageSigningOptions | undefined;
248
- /** Debian package signing options. */
541
+ /**
542
+ * Debian package signing options.
543
+ *
544
+ * @defaultValue None: `gtkx deploy` leaves this format unsigned
545
+ */
249
546
  deb?: DeployDebSigningOptions | undefined;
250
- /** Flatpak bundle signing options. */
547
+ /**
548
+ * Flatpak bundle signing options.
549
+ *
550
+ * @defaultValue None: `gtkx deploy` leaves this format unsigned
551
+ */
251
552
  flatpak?: DeployFlatpakSigningOptions | undefined;
252
- /** RPM package signing options. */
553
+ /**
554
+ * RPM package signing options.
555
+ *
556
+ * @defaultValue None: `gtkx deploy` leaves this format unsigned
557
+ */
253
558
  rpm?: DeployRpmSigningOptions | undefined;
254
559
  };
255
560
  /** The `deploy.relations` options: package relationships besides dependencies, for Debian and RPM. */
256
561
  type DeployRelationsOptions = {
257
- /** Recommended packages that extend the application's functionality. */
562
+ /**
563
+ * Recommended packages that extend the application's functionality.
564
+ *
565
+ * @defaultValue `{}`
566
+ */
258
567
  recommends?: DeployPackageRelationOptions | undefined;
259
- /** Suggested companion packages. */
568
+ /**
569
+ * Suggested companion packages.
570
+ *
571
+ * @defaultValue `{}`
572
+ */
260
573
  suggests?: DeployPackageRelationOptions | undefined;
261
- /** Package names or capabilities supplied by this package. */
574
+ /**
575
+ * Package names or capabilities supplied by this package.
576
+ *
577
+ * @defaultValue `{}`
578
+ */
262
579
  provides?: DeployPackageRelationOptions | undefined;
263
- /** Packages that cannot be installed alongside this package. */
580
+ /**
581
+ * Packages that cannot be installed alongside this package.
582
+ *
583
+ * @defaultValue `{}`
584
+ */
264
585
  conflicts?: DeployPackageRelationOptions | undefined;
265
- /** Packages whose files this package may replace. */
586
+ /**
587
+ * Packages whose files this package may replace.
588
+ *
589
+ * @defaultValue `{}`
590
+ */
266
591
  replaces?: DeployPackageRelationOptions | undefined;
267
- /** Debian packages made incompatible by installing this package. Debian packages only. */
592
+ /**
593
+ * Debian packages made incompatible by installing this package. Debian packages only.
594
+ *
595
+ * @defaultValue `{}`
596
+ */
268
597
  breaks?: DeployDebPackageRelationOptions | undefined;
269
- /** Debian dependencies required before unpacking this package. Debian packages only. */
598
+ /**
599
+ * Debian dependencies required before unpacking this package. Debian packages only.
600
+ *
601
+ * @defaultValue `{}`
602
+ */
270
603
  preDepends?: DeployDebPackageRelationOptions | undefined;
271
604
  };
272
605
  /** The `deploy` options: application metadata, bundled runtime settings, and packaging options for `gtkx deploy`. */
273
606
  type DeployOptions = {
274
- /** Package formats to build. Defaults to `["flatpak"]`; overridden by `gtkx deploy --target`. */
607
+ /**
608
+ * Package formats to build. `gtkx deploy --target` overrides it.
609
+ *
610
+ * @defaultValue `["flatpak"]`
611
+ */
275
612
  targets?: ("appimage" | "deb" | "flatpak" | "rpm")[] | undefined;
276
- /** Target CPU architectures. Defaults to the host architecture; overridden by `gtkx deploy --arch`. */
613
+ /**
614
+ * Target CPU architectures. `gtkx deploy --arch` overrides it.
615
+ *
616
+ * @defaultValue The host architecture, `arm64` or `x64`
617
+ */
277
618
  architectures?: ("arm64" | "x64")[] | undefined;
278
- /** Deployment directory relative to the project root. Defaults to `build`, with packages in its `out` directory. */
619
+ /**
620
+ * Deployment directory relative to the project root, with packages in its `out` directory. `gtkx deploy
621
+ * --out` overrides it.
622
+ *
623
+ * @defaultValue `"build"`
624
+ */
279
625
  outDir?: string | undefined;
280
- /** Display name, derived from package.json's name or the application ID when omitted. */
626
+ /**
627
+ * Display name.
628
+ *
629
+ * @defaultValue The `package.json` name without its scope, title-cased with spaces for hyphens and
630
+ * underscores, such as `Tasks App` for `@example/tasks-app`; or the last segment of the application ID
631
+ */
281
632
  name?: string | undefined;
282
- /** Generic application description shown by desktop launchers, such as `Text Editor`. */
633
+ /**
634
+ * Generic application description shown by desktop launchers, such as `Text Editor`.
635
+ *
636
+ * @defaultValue None: the desktop entry has no `GenericName` key
637
+ */
283
638
  genericName?: string | undefined;
284
- /** Launcher command name, derived from package.json's name or the application ID when omitted. */
639
+ /**
640
+ * Launcher command name, also used as the package name. A configured value is normalized the same way as the
641
+ * default.
642
+ *
643
+ * @defaultValue The `package.json` name without its scope, lowercased with hyphens for other characters; or
644
+ * the last segment of the application ID
645
+ */
285
646
  binaryName?: string | undefined;
286
- /** Application version. Defaults to the version in package.json. */
647
+ /**
648
+ * Application version. Deployment fails when neither this nor the `package.json` version is set.
649
+ *
650
+ * @defaultValue The `version` in `package.json`
651
+ */
287
652
  version?: string | undefined;
288
- /** Debian packaging revision and RPM release. Defaults to `1`. */
653
+ /**
654
+ * Debian packaging revision and RPM release.
655
+ *
656
+ * @defaultValue `"1"`
657
+ */
289
658
  release?: string | undefined;
290
- /** Non-negative Debian and RPM version epoch, omitted from package metadata unless configured. */
659
+ /**
660
+ * Non-negative Debian and RPM version epoch.
661
+ *
662
+ * @defaultValue None: package metadata has no `epoch`
663
+ */
291
664
  epoch?: number | undefined;
292
- /** Single-line summary without a trailing period. Defaults to the first line of package.json's description. */
665
+ /**
666
+ * Single-line summary without a trailing period. Deployment fails when neither this nor the `package.json`
667
+ * description is set.
668
+ *
669
+ * @defaultValue The first line of the `description` in `package.json`
670
+ */
293
671
  summary?: string | undefined;
294
- /** Long description as paragraphs. Defaults to the summary when omitted or empty. */
672
+ /**
673
+ * Long description as paragraphs.
674
+ *
675
+ * @defaultValue `deploy.summary` as the only paragraph, also when the array is empty
676
+ */
295
677
  description?: string[] | undefined;
296
- /** Search keywords included in the desktop entry and AppStream metadata. */
678
+ /**
679
+ * Search keywords included in the desktop entry and AppStream metadata.
680
+ *
681
+ * @defaultValue `[]`
682
+ */
297
683
  keywords?: string[] | undefined;
298
- /** Freedesktop application categories used by launchers, software centers, and package metadata. */
684
+ /**
685
+ * Freedesktop application categories used by launchers, software centers, and package metadata.
686
+ *
687
+ * @defaultValue `[]`
688
+ * @example
689
+ * ```ts
690
+ * categories: ["Office", "ProjectManagement"],
691
+ * ```
692
+ */
299
693
  categories?: string[] | undefined;
300
- /** Supported MIME types, combined with types from file associations and URL protocols. */
694
+ /**
695
+ * Supported MIME types, combined with types from file associations and URL protocols.
696
+ *
697
+ * @defaultValue `[]`
698
+ */
301
699
  mimeTypes?: string[] | undefined;
302
- /** Developer identity and package maintainer details. */
700
+ /**
701
+ * Developer identity and package maintainer details.
702
+ *
703
+ * @defaultValue `{}`: the details come from the `author` in `package.json`
704
+ */
303
705
  developer?: DeployDeveloperOptions | undefined;
304
- /** Application license as an SPDX expression. Defaults to the license in package.json. */
706
+ /**
707
+ * Application license as an SPDX expression. Deployment fails when neither this nor the `package.json`
708
+ * license is set.
709
+ *
710
+ * @defaultValue The `license` in `package.json`
711
+ */
305
712
  license?: string | undefined;
306
- /** License file path relative to the project root, detected from common LICENSE or COPYING names when omitted. */
713
+ /**
714
+ * License file path relative to the project root, installed with the application.
715
+ *
716
+ * @defaultValue The first of `LICENSE`, `LICENSE.md`, `LICENSE.txt`, `COPYING` and `COPYING.md` in the
717
+ * project root; none when no such file exists
718
+ */
307
719
  licenseFile?: string | undefined;
308
- /** SPDX license expression for the AppStream metadata. Defaults to `CC0-1.0`. */
720
+ /**
721
+ * SPDX license expression for the AppStream metadata.
722
+ *
723
+ * @defaultValue `"CC0-1.0"`
724
+ */
309
725
  metadataLicense?: string | undefined;
310
- /** Copyright notice. Defaults to the build year and developer name. */
726
+ /**
727
+ * Copyright notice.
728
+ *
729
+ * @defaultValue `Copyright © <year> <developer name>`, with the year of the build date
730
+ */
311
731
  copyright?: string | undefined;
312
- /** Application homepage URL. Defaults to the homepage in package.json. */
732
+ /**
733
+ * Application homepage URL.
734
+ *
735
+ * @defaultValue The `homepage` in `package.json`, if set
736
+ */
313
737
  homepage?: string | undefined;
314
- /** Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`. */
738
+ /**
739
+ * Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`.
740
+ *
741
+ * @defaultValue `{}`
742
+ * @example
743
+ * ```ts
744
+ * urls: { bugtracker: "https://github.com/example/tasks/issues" },
745
+ * ```
746
+ */
315
747
  urls?: Partial<Record<"bugtracker" | "contact" | "contribute" | "donation" | "faq" | "help" | "translate" | "vcs-browser", string>> | undefined;
316
- /** Screenshots for software centers. Each entry requires a `url` or `file`. */
748
+ /**
749
+ * Screenshots for software centers. Each entry requires a `url` or `file`.
750
+ *
751
+ * @defaultValue `[]`
752
+ */
317
753
  screenshots?: DeployScreenshotOptions[] | undefined;
318
- /** Base URL for screenshot files, inferred from a GitHub or GitLab remote when omitted. */
754
+ /**
755
+ * Base URL for screenshot files.
756
+ *
757
+ * @defaultValue The raw file URL of the project's GitHub or GitLab `origin` remote on its default branch;
758
+ * deployment fails without one when a screenshot sets `file`
759
+ */
319
760
  screenshotBaseUrl?: string | undefined;
320
- /** Primary branding colors included in AppStream metadata. */
761
+ /**
762
+ * Primary branding colors included in AppStream metadata.
763
+ *
764
+ * @defaultValue None: the metadata has no `branding` element
765
+ */
321
766
  branding?: DeployBrandingOptions | undefined;
322
- /** OARS 1.1 content-rating attributes mapped to their intensities. */
767
+ /**
768
+ * OARS 1.1 content-rating attributes mapped to their intensities.
769
+ *
770
+ * @defaultValue `{}`: an empty OARS 1.1 rating, which declares no objectionable content
771
+ * @example
772
+ * ```ts
773
+ * contentRating: { "social-chat": "intense" },
774
+ * ```
775
+ */
323
776
  contentRating?: Record<string, "intense" | "mild" | "moderate" | "none"> | undefined;
324
- /** AppStream release history, sorted newest first. Defaults to the application version and build date. */
777
+ /**
778
+ * AppStream release history, sorted newest first.
779
+ *
780
+ * @defaultValue One release for the application version, dated on the build day or by `SOURCE_DATE_EPOCH`
781
+ */
325
782
  releases?: DeployReleaseOptions[] | undefined;
326
- /** Application arguments included in the desktop entry's launch command. */
783
+ /**
784
+ * Application arguments included in the desktop entry's launch command.
785
+ *
786
+ * @defaultValue `[]`
787
+ */
327
788
  execArgs?: string[] | undefined;
328
- /** Environment variables exported by the generated launcher. Keys must be POSIX environment names. */
789
+ /**
790
+ * Environment variables exported by the generated launcher. Keys must be POSIX environment names.
791
+ *
792
+ * @defaultValue `{}`
793
+ * @example
794
+ * ```ts
795
+ * launcherEnv: { GSK_RENDERER: "ngl" },
796
+ * ```
797
+ */
329
798
  launcherEnv?: Record<string, string> | undefined;
330
- /** Node.js flags placed before the application bundle in the generated launcher. */
799
+ /**
800
+ * Node.js flags placed before the application bundle in the generated launcher.
801
+ *
802
+ * @defaultValue `[]`
803
+ * @example
804
+ * ```ts
805
+ * nodeFlags: ["--max-old-space-size=4096"],
806
+ * ```
807
+ */
331
808
  nodeFlags?: string[] | undefined;
332
- /** File extensions and MIME types registered for the application. */
809
+ /**
810
+ * File extensions and MIME types registered for the application.
811
+ *
812
+ * @defaultValue `[]`
813
+ */
333
814
  fileAssociations?: DeployFileAssociationOptions[] | undefined;
334
- /** URL schemes handled by the application, registered as `x-scheme-handler` MIME types. */
815
+ /**
816
+ * URL schemes handled by the application, registered as `x-scheme-handler` MIME types.
817
+ *
818
+ * @defaultValue `[]`
819
+ */
335
820
  protocols?: string[] | undefined;
336
821
  /**
337
822
  * Desktop launcher actions keyed by action ID. With `isDbusActivatable`, the application must register an
338
823
  * `app.<id>` action for each one.
824
+ *
825
+ * @defaultValue `{}`
826
+ * @example
827
+ * ```ts
828
+ * desktopActions: { today: { name: "Today", args: ["tasks://today"] } },
829
+ * ```
339
830
  */
340
831
  desktopActions?: Record<string, DeployDesktopActionOptions> | undefined;
341
832
  /**
342
- * Additional desktop entry keys, overriding non-reserved generated values.
343
- * `DBusActivatable` and `Version` are rejected; use `deploy.isDbusActivatable` for D-Bus activation.
833
+ * Additional desktop entry keys, overriding non-reserved generated values. `DBusActivatable` and `Version`
834
+ * are rejected; use `deploy.isDbusActivatable` for D-Bus activation.
835
+ *
836
+ * @defaultValue `{}`
344
837
  */
345
838
  desktopEntry?: Record<string, string> | undefined;
346
- /** Additional XML fragments appended to the AppStream component. */
839
+ /**
840
+ * Additional XML fragments appended to the AppStream component.
841
+ *
842
+ * @defaultValue `[]`
843
+ */
347
844
  metainfoExtra?: string[] | undefined;
348
- /** Enable D-Bus activation in the desktop entry and generate a session bus service file. Defaults to `false`. */
845
+ /**
846
+ * Enable D-Bus activation in the desktop entry and generate a session bus service file.
847
+ *
848
+ * @defaultValue `false`
849
+ */
349
850
  isDbusActivatable?: boolean | undefined;
350
851
  /**
351
852
  * Extra files keyed by destination inside the install prefix, without a leading slash or a `..` segment.
@@ -354,29 +855,83 @@ type DeployOptions = {
354
855
  * destination; without a mode, each file is executable when its source is. Scripts installed this way, such
355
856
  * as a helper command's launcher, can run the bundled Node.js runtime at `lib/<binaryName>/node` in every
356
857
  * prebuilt target and in source Flatpaks.
858
+ *
859
+ * @defaultValue `{}`
860
+ * @example
861
+ * ```ts
862
+ * extraFiles: { "share/tasks/templates": "data/templates" },
863
+ * ```
357
864
  */
358
865
  extraFiles?: Record<string, string | DeployExtraFileOptions> | undefined;
359
- /** Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies. */
866
+ /**
867
+ * Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies.
868
+ *
869
+ * @defaultValue `{}`: library dependencies carry no version constraint
870
+ * @example
871
+ * ```ts
872
+ * minimumLibraryVersions: { "Adw-1": "1.8", "Gtk-4.0": "4.20" },
873
+ * ```
874
+ */
360
875
  minimumLibraryVersions?: Record<string, string> | undefined;
361
- /** Additional Debian and RPM dependencies merged with automatically detected dependencies. */
876
+ /**
877
+ * Additional Debian and RPM dependencies merged with automatically detected dependencies.
878
+ *
879
+ * @defaultValue None: only the detected dependencies, such as `libgtk-4-1` on Debian
880
+ */
362
881
  depends?: DeployPackageRelationOptions | undefined;
363
- /** Additional package relationships for Debian and RPM. */
882
+ /**
883
+ * Additional package relationships for Debian and RPM.
884
+ *
885
+ * @defaultValue `{}`: no relations besides `depends`
886
+ */
364
887
  relations?: DeployRelationsOptions | undefined;
365
- /** Installation and removal scripts for Debian and RPM packages. */
888
+ /**
889
+ * Installation and removal scripts for Debian and RPM packages.
890
+ *
891
+ * @defaultValue `{}`: no maintainer scripts
892
+ */
366
893
  scripts?: DeployScriptsOptions | undefined;
367
- /** Node.js runtime bundled with prebuilt packages and launcher compile-cache settings. */
894
+ /**
895
+ * Node.js runtime bundled with prebuilt packages and launcher compile-cache settings.
896
+ *
897
+ * @defaultValue `{}`: a downloaded Node.js `26.8.2`, stripped, with the compile cache on
898
+ */
368
899
  node?: DeployNodeOptions | undefined;
369
- /** Overrides for executables used to build packages. */
900
+ /**
901
+ * Overrides for executables used to build packages.
902
+ *
903
+ * @defaultValue `{}`: `gtkx deploy` downloads the pinned tools it needs
904
+ */
370
905
  tools?: DeployToolsOptions | undefined;
371
- /** Per-format package signing options. */
906
+ /**
907
+ * Per-format package signing options.
908
+ *
909
+ * @defaultValue `{}`: every package is unsigned
910
+ */
372
911
  signing?: DeploySigningOptions | undefined;
373
- /** AppImage packaging options. */
912
+ /**
913
+ * AppImage packaging options.
914
+ *
915
+ * @defaultValue `{}`
916
+ */
374
917
  appimage?: DeployAppImageOptions | undefined;
375
- /** Debian package metadata and compression options. */
918
+ /**
919
+ * Debian package metadata and compression options.
920
+ *
921
+ * @defaultValue `{}`
922
+ */
376
923
  deb?: DeployDebOptions | undefined;
377
- /** Flatpak runtime, sandbox, build, and distribution options. */
924
+ /**
925
+ * Flatpak runtime, sandbox, build, and distribution options.
926
+ *
927
+ * @defaultValue `{}`
928
+ */
378
929
  flatpak?: DeployFlatpakOptions | undefined;
379
- /** RPM package metadata and compression options. */
930
+ /**
931
+ * RPM package metadata and compression options.
932
+ *
933
+ * @defaultValue `{}`
934
+ */
380
935
  rpm?: DeployRpmOptions | undefined;
381
936
  };
382
937
  declare const deploySchema: z.ZodObject<{