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

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.js CHANGED
@@ -54,77 +54,51 @@ const minimumLibraryVersionsSchema = z.record(girLibrary(LIBRARY_ID_ERROR), mini
54
54
  error: MINIMUM_LIBRARY_VERSIONS_ERROR,
55
55
  });
56
56
  const relationsSchema = z.strictObject({
57
- /** Package relations expressed in Debian dependency syntax. */
58
57
  deb: textList("Debian package relation", "must be an array of Debian package relations").optional(),
59
- /** Package relations expressed in RPM dependency syntax. */
60
58
  rpm: textList("RPM package relation", "must be an array of RPM package relations").optional(),
61
59
  });
60
+ const debRelationsSchema = z.strictObject({
61
+ deb: textList("Debian package relation", "must be an array of Debian package relations").optional(),
62
+ });
62
63
  const developerSchema = z.strictObject({
63
- /** Reverse-DNS developer identifier, derived from the application ID when omitted. */
64
64
  id: text("must be a reverse-DNS developer id").optional(),
65
- /** Developer or organization name. Defaults to the author in package.json. */
66
65
  name: text("must be a developer or organization name").optional(),
67
- /** Maintainer email address. Defaults to the author's email in package.json. */
68
66
  email: text("must be an email address").optional(),
69
67
  });
70
- /** Screenshot entry schema and the source of {@link DeployScreenshotOptions}. */
71
68
  const screenshotSchema = z
72
69
  .strictObject({
73
- /** Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`. */
74
70
  url: url("must be an absolute URL to a PNG or JPEG").optional(),
75
- /** Screenshot path relative to the project root, resolved against `screenshotBaseUrl`. */
76
71
  file: text("must be an image path relative to the project root").optional(),
77
- /** Caption displayed with the screenshot in software centers. */
78
72
  caption: text("must be a screenshot caption").optional(),
79
- /** Marks the primary screenshot. Only the first entry set to `true` is used. */
80
73
  isDefault: flag(BOOLEAN_ERROR).optional(),
81
74
  })
82
75
  .refine((entry) => entry.url !== undefined || entry.file !== undefined, {
83
76
  error: "must have either a `url` or a `file`",
84
77
  });
85
- /** Release-history entry schema and the source of {@link DeployReleaseOptions}. */
86
78
  const releaseSchema = z.strictObject({
87
- /** Application version described by this release. */
88
79
  version: text(VERSION_ERROR),
89
- /** Release date in `YYYY-MM-DD` format. */
90
80
  date: z.iso.date({ error: "must be an ISO date (YYYY-MM-DD)" }),
91
- /** AppStream release classification. */
92
81
  type: z.enum(RELEASE_TYPES, { error: "must be one of development, snapshot, stable" }).optional(),
93
- /** AppStream update urgency. */
94
82
  urgency: z.enum(RELEASE_URGENCIES, { error: "must be one of critical, high, low, medium" }).optional(),
95
- /** Release notes, with each entry rendered as a paragraph. */
96
83
  notes: textList("release note paragraph", "must be an array of release note paragraphs").optional(),
97
- /** Absolute URL containing further details about the release. */
98
84
  url: url(URL_ERROR).optional(),
99
85
  });
100
- /** File association schema and the source of {@link DeployFileAssociationOptions}. */
101
86
  const fileAssociationSchema = z.strictObject({
102
- /** File extension to associate with the application, without a leading dot. */
103
87
  extension: fileExtension("must be a file extension without a leading dot"),
104
- /** MIME type registered for the file extension. */
105
88
  mimeType: text("must be a MIME type such as text/plain"),
106
- /** Human-readable description of the file type. */
107
89
  description: text("must be a description of the file type").optional(),
108
90
  });
109
- /** Desktop launcher action schema and the source of {@link DeployDesktopActionOptions}. */
110
91
  const desktopActionSchema = z.strictObject({
111
- /** Action label shown in the desktop launcher menu. */
112
92
  name: text("must be an action name"),
113
- /** Arguments passed to the application when the action is activated. */
114
93
  args: textList("argument", "must be an array of arguments appended to Exec").optional(),
115
- /** Icon theme name used for the action. */
116
94
  icon: text("must be an icon name").optional(),
117
95
  });
118
96
  const brandingSchema = z.strictObject({
119
- /** Primary AppStream branding color for light mode, in `#rrggbb` format. */
120
97
  light: hexColorSchema,
121
- /** Primary AppStream branding color for dark mode, in `#rrggbb` format. */
122
98
  dark: hexColorSchema,
123
99
  });
124
100
  const extraFileSchema = z.strictObject({
125
- /** Source file path, resolved relative to the project root. */
126
101
  source: text(SOURCE_PATH_ERROR),
127
- /** Octal file mode. Setuid and setgid bits are rejected. */
128
102
  mode: z
129
103
  .string({ error: FILE_MODE_ERROR })
130
104
  .regex(FILE_MODE_PATTERN, { error: FILE_MODE_ERROR })
@@ -139,294 +113,165 @@ const nodeFlagsSchema = z.array(z
139
113
  .string({ error: NODE_FLAG_ERROR })
140
114
  .refine((value) => value.startsWith("-") && !value.includes("\0"), { error: NODE_FLAG_ERROR }), { error: "must be an array of Node.js flags" });
141
115
  const nodeRuntimeSchema = z.strictObject({
142
- /** Runtime source: an official download, the running Node.js executable, or `path`. Defaults to `download`. */
143
116
  source: z.enum(NODE_SOURCES, { error: "must be one of download, host, path" }).optional(),
144
- /** Expected Node.js version. Downloaded runtimes default to exactly 26.8.2 when omitted. */
145
117
  version: text("must be a Node.js version such as 26.7.0").optional(),
146
- /** Node.js executable path relative to the project root, required when `source` is `path`. */
147
118
  path: text("must be a path to a node binary").optional(),
148
- /** Strip the runtime when its architecture matches the host and `strip` is available. Defaults to `true`. */
149
119
  shouldStrip: flag(BOOLEAN_ERROR).optional(),
150
- /** Enable Node.js compile caching in the generated launcher. Defaults to `true`. */
151
120
  shouldUseCompileCache: flag(BOOLEAN_ERROR).optional(),
152
121
  });
153
122
  const scriptsSchema = z.strictObject({
154
- /** Shell script run before installing a Debian or RPM package. */
155
123
  preInstall: text(SCRIPT_ERROR).optional(),
156
- /** Shell script run after installing a Debian or RPM package. */
157
124
  postInstall: text(SCRIPT_ERROR).optional(),
158
- /** Shell script run before removing a Debian or RPM package. */
159
125
  preRemove: text(SCRIPT_ERROR).optional(),
160
- /** Shell script run after removing a Debian or RPM package. */
161
126
  postRemove: text(SCRIPT_ERROR).optional(),
162
127
  });
163
128
  const toolsSchema = z.strictObject({
164
- /** nFPM executable name or path relative to the project root. Defaults to a verified pinned download. */
165
129
  nfpm: text("must be an nFPM executable name or path").optional(),
166
130
  });
167
131
  const debSchema = z.strictObject({
168
- /** Debian package name. Defaults to `deploy.binaryName`. */
169
132
  packageName: text("must be a Debian package name").optional(),
170
- /** Debian archive section, derived from the application categories when omitted. */
171
133
  section: text("must be a Debian archive section").optional(),
172
- /** Debian package priority. Defaults to `optional`. */
173
134
  priority: text("must be a Debian priority").optional(),
174
- /** Compression used for the Debian package payload. */
175
135
  compression: z.enum(DEB_COMPRESSIONS, { error: "must be one of gzip, none, xz, zstd" }).optional(),
176
- /** Additional Debian control fields, keyed by field name. */
177
136
  fields: textRecord("must be a control field value", "must be a record of control field names to values").optional(),
178
137
  });
179
138
  const rpmSchema = z.strictObject({
180
- /** RPM package name. Defaults to `deploy.binaryName`. */
181
139
  packageName: text("must be an RPM package name").optional(),
182
- /** RPM package group, derived from the application categories when omitted. */
183
140
  group: text("must be an RPM group").optional(),
184
- /** Compression used for the RPM package payload. */
185
141
  compression: z.enum(RPM_COMPRESSIONS, { error: "must be one of gzip, lzma, xz, zstd" }).optional(),
186
- /** Installation prefixes that the RPM package allows users to relocate. */
187
142
  prefixes: textList("prefix", "must be an array of relocation prefixes").optional(),
188
143
  });
189
144
  const appimageSchema = z.strictObject({
190
- /** Output file name, derived from the application name, version, and architecture when omitted. */
191
145
  fileName: text("must be an output file name").optional(),
192
- /** Compression explicitly requested from appimagetool. */
193
146
  compression: z.literal("zstd", { error: "must be zstd" }).optional(),
194
- /** AppImage update information string embedded in the executable. */
195
147
  updateInformation: text("must be an AppImage update information string").optional(),
196
- /** Custom AppImage runtime file path, resolved relative to the project root. */
197
148
  runtimeFile: text("must be a path to an AppImage runtime file").optional(),
198
149
  });
199
150
  const flatpakSourceSchema = z.strictObject({
200
- /** Public HTTP or HTTPS Git repository URL. Defaults to the project's Git remote. */
201
151
  url: url("must be an absolute git URL").optional(),
202
- /** Git tag to build, pinned to its commit when `commit` is omitted. */
203
152
  tag: text("must be a git tag").optional(),
204
- /** Git commit to build. Defaults to the configured tag's commit or the current HEAD. */
205
153
  commit: text("must be a git commit sha").optional(),
206
154
  });
207
155
  const flatpakSchema = z.strictObject({
208
- /** Package local build output or build from a pinned Git source inside the SDK. Defaults to `prebuilt`. */
209
156
  mode: z.enum(FLATPAK_MODES, { error: 'must be "prebuilt" or "source"' }).optional(),
210
- /** Flatpak runtime ID. Defaults to `org.gnome.Platform`. */
211
157
  runtime: text("must be a runtime id").optional(),
212
- /** Flatpak runtime branch. Defaults to `50`. */
213
- runtimeVersion: text('must be a runtime branch such as "50"').optional(),
214
- /** Build SDK ID. Defaults to `org.gnome.Sdk`. */
158
+ runtimeVersion: text('must be a runtime branch such as "51"').optional(),
215
159
  sdk: text("must be an SDK id").optional(),
216
- /** Node.js SDK extension used in source mode. Defaults to `org.freedesktop.Sdk.Extension.node26`. */
217
160
  nodeExtension: text("must be a Node SDK extension id").optional(),
218
- /** Additional SDK extension IDs included in the build environment. */
219
161
  sdkExtensions: textList("SDK extension id", "must be an array of SDK extension ids").optional(),
220
- /** Optional Flatpak base application ID. */
221
162
  base: text("must be a base app id").optional(),
222
- /** Branch of the base application. */
223
163
  baseVersion: text("must be a base app version").optional(),
224
- /** Exported application branch. Defaults to `stable`. */
225
164
  branch: text("must be a branch name").optional(),
226
- /** Sandbox permissions added to display, IPC, and GPU defaults. Negations remove matching defaults. */
227
165
  finishArgs: textList("finish argument", "must be an array of flatpak finish arguments").optional(),
228
- /** Patterns added to header, pkg-config, and static-library cleanup defaults. An empty array disables cleanup. */
229
166
  cleanup: textList("cleanup pattern", "must be an array of cleanup patterns").optional(),
230
- /** Additional shell commands appended to the application's Flatpak build commands. */
231
167
  buildCommands: textList("shell command", "must be an array of shell commands").optional(),
232
- /** Additional Flatpak manifest modules built before the application module. */
233
168
  modules: z.array(z.unknown(), { error: "must be an array of flatpak module objects" }).optional(),
234
- /** Git repository and revision used for source builds. */
235
169
  source: flatpakSourceSchema.optional(),
236
- /** Package manager used for offline source builds, detected from the project's lockfiles when omitted. */
237
170
  packageManager: z.enum(PACKAGE_MANAGERS, { error: "must be one of npm, pnpm, yarn" }).optional(),
238
- /** Lockfile path relative to the project root. Defaults to the selected package manager's standard lockfile. */
239
171
  lockfile: text("must be a path to a lockfile").optional(),
240
- /** Runtime repository URL embedded in the bundle. Defaults to Flathub's `.flatpakrepo` URL. */
241
172
  runtimeRepo: url("must be an absolute .flatpakrepo URL").optional(),
242
- /** Emit a `.flatpak` bundle in addition to the local repository. Defaults to `true`. */
243
173
  shouldEmitBundle: flag(BOOLEAN_ERROR).optional(),
244
- /** Install the built application into the current user's Flatpak installation. Defaults to `false`. */
245
174
  shouldInstall: flag(BOOLEAN_ERROR).optional(),
246
- /** Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable. */
247
175
  shouldUseRofilesFuse: flag(BOOLEAN_ERROR).optional(),
248
176
  });
249
177
  const debSigningSchema = z.strictObject({
250
- /** PGP private key file used to sign the Debian package. */
251
178
  keyFile: text(KEY_FILE_ERROR),
252
- /** PGP signing key ID. */
253
179
  keyId: text(KEY_ID_ERROR).optional(),
254
- /** Debian package signing method. */
255
180
  method: z.enum(DEB_SIGN_METHODS, { error: 'must be "debsign" or "dpkg-sig"' }).optional(),
256
- /** Debian signature role. */
257
181
  type: z.enum(DEB_SIGN_TYPES, { error: "must be one of archive, maint, origin" }).optional(),
258
- /** Name and email address recorded as the signer. */
259
182
  signer: text("must be a signer name and email").optional(),
260
183
  });
261
184
  const rpmSigningSchema = z.strictObject({
262
- /** PGP private key file used to sign the RPM package. */
263
185
  keyFile: text(KEY_FILE_ERROR),
264
- /** PGP signing key ID. */
265
186
  keyId: text(KEY_ID_ERROR).optional(),
266
187
  });
267
188
  const flatpakSigningSchema = z.strictObject({
268
- /** GPG key ID used to sign the Flatpak bundle. */
269
189
  gpgKeyId: text("must be a GPG key id"),
270
- /** GPG home directory containing the signing key. */
271
190
  gpgHomeDir: text("must be a path to a GPG home directory").optional(),
272
191
  });
273
192
  const appimageSigningSchema = z.strictObject({
274
- /** GPG key ID used by appimagetool to sign the AppImage. */
275
193
  gpgKeyId: text("must be a GPG key id"),
276
194
  });
277
195
  const signingSchema = z.strictObject({
278
- /** AppImage signing options. */
279
196
  appimage: appimageSigningSchema.optional(),
280
- /** Debian package signing options. */
281
197
  deb: debSigningSchema.optional(),
282
- /** Flatpak bundle signing options. */
283
198
  flatpak: flatpakSigningSchema.optional(),
284
- /** RPM package signing options. */
285
199
  rpm: rpmSigningSchema.optional(),
286
200
  });
287
201
  const extraRelationsSchema = z.strictObject({
288
- /** Recommended packages that extend the application's functionality. */
289
202
  recommends: relationsSchema.optional(),
290
- /** Suggested companion packages. */
291
203
  suggests: relationsSchema.optional(),
292
- /** Package names or capabilities supplied by this package. */
293
204
  provides: relationsSchema.optional(),
294
- /** Packages that cannot be installed alongside this package. */
295
205
  conflicts: relationsSchema.optional(),
296
- /** Packages whose files this package may replace. */
297
206
  replaces: relationsSchema.optional(),
298
- /** Debian packages made incompatible by installing this package. Uses the `deb` entries. */
299
- breaks: relationsSchema.optional(),
300
- /** Debian dependencies required before unpacking this package. Uses the `deb` entries. */
301
- preDepends: relationsSchema.optional(),
207
+ breaks: debRelationsSchema.optional(),
208
+ preDepends: debRelationsSchema.optional(),
302
209
  });
303
210
  const deploySchema = z.strictObject({
304
- /** Package formats to build. Defaults to `["flatpak"]`; overridden by `gtkx deploy --target`. */
305
211
  targets: z
306
212
  .array(z.enum(DEPLOY_TARGET_NAMES, { error: "must be one of appimage, deb, flatpak, rpm" }), {
307
213
  error: "must be an array of deploy targets",
308
214
  })
309
215
  .optional(),
310
- /** Target CPU architectures. Defaults to the host architecture; overridden by `gtkx deploy --arch`. */
311
216
  architectures: z
312
217
  .array(z.enum(DEPLOY_ARCH_NAMES, { error: "must be one of arm64, x64" }), {
313
218
  error: "must be an array of deploy architectures",
314
219
  })
315
220
  .optional(),
316
- /** Deployment directory relative to the project root. Defaults to `build`, with packages in its `out` directory. */
317
221
  outDir: text("must be a directory path relative to the project root").optional(),
318
- /** Display name, derived from package.json's name or the application ID when omitted. */
319
222
  name: text("must be the display name shown in the launcher").optional(),
320
- /** Generic application description shown by desktop launchers, such as `Text Editor`. */
321
223
  genericName: text("must be a generic application name").optional(),
322
- /** Launcher command name, derived from package.json's name or the application ID when omitted. */
323
224
  binaryName: text("must be a kebab-case command name").optional(),
324
- /** Application version. Defaults to the version in package.json. */
325
225
  version: text(VERSION_ERROR).optional(),
326
- /** Debian packaging revision and RPM release. Defaults to `1`. */
327
226
  release: text("must be a packaging revision").optional(),
328
- /** Non-negative Debian and RPM version epoch, omitted from package metadata unless configured. */
329
227
  epoch: z.int({ error: EPOCH_ERROR }).min(0, { error: EPOCH_ERROR }).optional(),
330
- /** Single-line summary without a trailing period. Defaults to the first line of package.json's description. */
331
228
  summary: text("must be a single-line summary without a trailing period").optional(),
332
- /** Long description as paragraphs. Defaults to the summary when omitted or empty. */
333
229
  description: textList("description paragraph", "must be an array of description paragraphs").optional(),
334
- /** Search keywords included in the desktop entry and AppStream metadata. */
335
230
  keywords: textList("search keyword", "must be an array of search keywords").optional(),
336
- /** Freedesktop application categories used by launchers, software centers, and package metadata. */
337
231
  categories: textList("freedesktop category", "must be an array of freedesktop categories").optional(),
338
- /** Supported MIME types, combined with types from file associations and URL protocols. */
339
232
  mimeTypes: textList("MIME type", "must be an array of MIME types").optional(),
340
- /** Developer identity and package maintainer details. */
341
233
  developer: developerSchema.optional(),
342
- /** Application license as an SPDX expression. Defaults to the license in package.json. */
343
234
  license: text(SPDX_ERROR).optional(),
344
- /** License file path relative to the project root, detected from common LICENSE or COPYING names when omitted. */
345
235
  licenseFile: text("must be a path to a license file").optional(),
346
- /** SPDX license expression for the AppStream metadata. Defaults to `CC0-1.0`. */
347
236
  metadataLicense: text(SPDX_ERROR).optional(),
348
- /** Copyright notice. Defaults to the build year and developer name. */
349
237
  copyright: text("must be a copyright line").optional(),
350
- /** Application homepage URL. Defaults to the homepage in package.json. */
351
238
  homepage: url(URL_ERROR).optional(),
352
- /** Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`. */
353
239
  urls: z
354
240
  .partialRecord(z.enum(URL_KINDS), url(URL_ERROR), {
355
241
  error: "must be a record of AppStream url kinds to URLs",
356
242
  })
357
243
  .optional(),
358
- /**
359
- * Screenshots for software centers. Each entry requires a `url` or `file`.
360
- * @see {@link DeployScreenshotOptions} for the fields accepted by each entry.
361
- */
362
244
  screenshots: z.array(screenshotSchema, { error: "must be an array of screenshots" }).optional(),
363
- /** Base URL for screenshot files, inferred from a GitHub or GitLab remote when omitted. */
364
245
  screenshotBaseUrl: url("must be an absolute base URL").optional(),
365
- /** Primary branding colors included in AppStream metadata. */
366
246
  branding: brandingSchema.optional(),
367
- /** OARS 1.1 content-rating attributes mapped to their intensities. */
368
247
  contentRating: z
369
248
  .record(z.string(), z.enum(OARS_INTENSITIES, { error: "must be one of intense, mild, moderate, none" }), {
370
249
  error: "must be a record of OARS 1.1 attribute ids to intensities",
371
250
  })
372
251
  .optional(),
373
- /**
374
- * AppStream release history, sorted newest first. Defaults to the application version and build date.
375
- * @see {@link DeployReleaseOptions} for the fields accepted by each entry.
376
- */
377
252
  releases: z.array(releaseSchema, { error: "must be an array of releases" }).optional(),
378
- /** Application arguments included in the desktop entry's launch command. */
379
253
  execArgs: textList("argument", "must be an array of arguments appended to Exec").optional(),
380
- /** Environment variables exported by the generated launcher. Keys must be POSIX environment names. */
381
254
  launcherEnv: launcherEnvSchema.optional(),
382
- /** Node.js flags placed before the application bundle in the generated launcher. */
383
255
  nodeFlags: nodeFlagsSchema.optional(),
384
- /**
385
- * File extensions and MIME types registered for the application.
386
- * @see {@link DeployFileAssociationOptions} for the fields accepted by each entry.
387
- */
388
256
  fileAssociations: z.array(fileAssociationSchema, { error: "must be an array of file associations" }).optional(),
389
- /** URL schemes handled by the application, registered as `x-scheme-handler` MIME types. */
390
257
  protocols: textList("URL scheme", "must be an array of URL schemes").optional(),
391
- /**
392
- * Desktop launcher actions keyed by action ID.
393
- * @see {@link DeployDesktopActionOptions} for the fields accepted by each entry.
394
- */
395
258
  desktopActions: z
396
259
  .record(z.string(), desktopActionSchema, { error: "must be a record of action ids to actions" })
397
260
  .optional(),
398
- /**
399
- * Additional desktop entry keys, overriding non-reserved generated values.
400
- * `DBusActivatable` and `Version` are rejected; use `deploy.isDbusActivatable` for D-Bus activation.
401
- */
402
261
  desktopEntry: textRecord("must be a desktop entry value", "must be a record of desktop entry keys to values").optional(),
403
- /** Additional XML fragments appended to the AppStream component. */
404
262
  metainfoExtra: textList("AppStream XML fragment", "must be an array of AppStream XML fragments").optional(),
405
- /** Enable D-Bus activation in the desktop entry and generate a session bus service file. Defaults to `false`. */
406
263
  isDbusActivatable: flag(BOOLEAN_ERROR).optional(),
407
- /** Extra files keyed by destination inside the install prefix, with source paths relative to the project root. */
408
264
  extraFiles: relativePathRecord("must be a destination path inside the install prefix, without a leading slash or a .. segment", extraFileEntrySchema, "must be a record of prefix-relative destinations to source paths or { source, mode } entries").optional(),
409
- /** Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies. */
410
265
  minimumLibraryVersions: minimumLibraryVersionsSchema.optional(),
411
- /** Additional Debian and RPM dependencies merged with automatically detected dependencies. */
412
266
  depends: relationsSchema.optional(),
413
- /** Additional package relationships for Debian and RPM. */
414
267
  relations: extraRelationsSchema.optional(),
415
- /** Installation and removal scripts for Debian and RPM packages. */
416
268
  scripts: scriptsSchema.optional(),
417
- /** Node.js runtime bundled with prebuilt packages and launcher compile-cache settings. */
418
269
  node: nodeRuntimeSchema.optional(),
419
- /** Overrides for executables used to build packages. */
420
270
  tools: toolsSchema.optional(),
421
- /** Per-format package signing options. */
422
271
  signing: signingSchema.optional(),
423
- /** AppImage packaging options. */
424
272
  appimage: appimageSchema.optional(),
425
- /** Debian package metadata and compression options. */
426
273
  deb: debSchema.optional(),
427
- /** Flatpak runtime, sandbox, build, and distribution options. */
428
274
  flatpak: flatpakSchema.optional(),
429
- /** RPM package metadata and compression options. */
430
275
  rpm: rpmSchema.optional(),
431
276
  });
432
277
  export { deploySchema, };
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../src/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;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,CAAC,QAAQ,EAAE;IAC7B,0CAA0C;IAC1C,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,kCAAkC;IAClC,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE;IACnC,uDAAuD;IACvD,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE;IACzB,iEAAiE;IACjE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,oDAAoD;IACpD,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAEH,OAAO,EACH,YAAY,GAOf,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { fileExtension, flag, girLibrary, relativePathRecord, text, textList, textRecord, url } from \"./schema-text.ts\";\n\nconst DEB_COMPRESSIONS = [\"gzip\", \"none\", \"xz\", \"zstd\"] as const;\nconst DEB_SIGN_METHODS = [\"debsign\", \"dpkg-sig\"] as const;\nconst DEB_SIGN_TYPES = [\"archive\", \"maint\", \"origin\"] as const;\nconst DEPLOY_ARCH_NAMES = [\"arm64\", \"x64\"] as const;\nconst DEPLOY_TARGET_NAMES = [\"appimage\", \"deb\", \"flatpak\", \"rpm\"] as const;\nconst FLATPAK_MODES = [\"prebuilt\", \"source\"] as const;\nconst NODE_SOURCES = [\"download\", \"host\", \"path\"] as const;\nconst OARS_INTENSITIES = [\"intense\", \"mild\", \"moderate\", \"none\"] as const;\nconst PACKAGE_MANAGERS = [\"npm\", \"pnpm\", \"yarn\"] as const;\nconst RELEASE_TYPES = [\"development\", \"snapshot\", \"stable\"] as const;\nconst RELEASE_URGENCIES = [\"critical\", \"high\", \"low\", \"medium\"] as const;\nconst RPM_COMPRESSIONS = [\"gzip\", \"lzma\", \"xz\", \"zstd\"] as const;\n\nconst URL_KINDS = [\n \"bugtracker\",\n \"contact\",\n \"contribute\",\n \"donation\",\n \"faq\",\n \"help\",\n \"translate\",\n \"vcs-browser\",\n] as const;\n\nconst BOOLEAN_ERROR = \"must be a boolean\";\nconst EPOCH_ERROR = \"must be a non-negative integer\";\nconst EXTRA_FILE_ERROR = \"must be a source path or a { source, mode } entry\";\nconst FILE_MODE_ERROR = \"must be an octal file mode without setuid or setgid bits, such as 755\";\nconst FILE_MODE_PATTERN = /^[0-7]{3,4}$/;\nconst FILE_MODE_RADIX = 8;\nconst PRIVILEGED_FILE_MODE_MASK = 0o6000;\nconst HEX_COLOR_ERROR = \"must be a #rrggbb color\";\nconst HEX_COLOR_PATTERN = /^#[\\dA-Fa-f]{6}$/;\nconst KEY_FILE_ERROR = \"must be a path to a PGP key file\";\nconst KEY_ID_ERROR = \"must be a PGP key id\";\nconst LAUNCHER_ENV_ERROR = \"must be a record of POSIX environment names to values without null bytes\";\nconst LAUNCHER_ENV_NAME_ERROR = \"must be a POSIX environment name\";\nconst LAUNCHER_ENV_NAME_PATTERN = /^[A-Za-z_]\\w*$/;\nconst MINIMUM_LIBRARY_VERSION_ERROR = \"must be a version such as 4.18\";\nconst MINIMUM_LIBRARY_VERSION_PATTERN = /^\\d+(?:\\.\\d+)*$/;\nconst MINIMUM_LIBRARY_VERSIONS_ERROR = \"must be a record of GIR library ids to a minimum version\";\nconst NODE_FLAG_ERROR = \"must be a Node.js flag beginning with a hyphen and containing no null bytes\";\nconst LIBRARY_ID_ERROR = 'must be a GIR library identifier of the form \"Name-Version\", such as \"Adw-1\"';\nconst SCRIPT_ERROR = \"must be a path to a shell script\";\nconst SOURCE_PATH_ERROR = \"must be a source path\";\nconst SPDX_ERROR = \"must be an SPDX license expression\";\nconst URL_ERROR = \"must be an absolute URL\";\nconst VERSION_ERROR = \"must be a version string\";\nconst hexColorSchema = z.string({ error: HEX_COLOR_ERROR }).regex(HEX_COLOR_PATTERN, { error: HEX_COLOR_ERROR });\n\nconst minimumLibraryVersionSchema = z\n .string({ error: MINIMUM_LIBRARY_VERSION_ERROR })\n .regex(MINIMUM_LIBRARY_VERSION_PATTERN, { error: MINIMUM_LIBRARY_VERSION_ERROR });\n\nconst minimumLibraryVersionsSchema = z.record(girLibrary(LIBRARY_ID_ERROR), minimumLibraryVersionSchema, {\n error: MINIMUM_LIBRARY_VERSIONS_ERROR,\n});\n\nconst relationsSchema = z.strictObject({\n /** Package relations expressed in Debian dependency syntax. */\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n /** Package relations expressed in RPM dependency syntax. */\n rpm: textList(\"RPM package relation\", \"must be an array of RPM package relations\").optional(),\n});\n\nconst developerSchema = z.strictObject({\n /** Reverse-DNS developer identifier, derived from the application ID when omitted. */\n id: text(\"must be a reverse-DNS developer id\").optional(),\n /** Developer or organization name. Defaults to the author in package.json. */\n name: text(\"must be a developer or organization name\").optional(),\n /** Maintainer email address. Defaults to the author's email in package.json. */\n email: text(\"must be an email address\").optional(),\n});\n\n/** One software-center screenshot in `deploy.screenshots`. Either `url` or `file` must be set. */\ntype DeployScreenshotOptions = z.infer<typeof screenshotSchema>;\n\n/** Screenshot entry schema and the source of {@link DeployScreenshotOptions}. */\nconst screenshotSchema = z\n .strictObject({\n /** Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`. */\n url: url(\"must be an absolute URL to a PNG or JPEG\").optional(),\n /** Screenshot path relative to the project root, resolved against `screenshotBaseUrl`. */\n file: text(\"must be an image path relative to the project root\").optional(),\n /** Caption displayed with the screenshot in software centers. */\n caption: text(\"must be a screenshot caption\").optional(),\n /** Marks the primary screenshot. Only the first entry set to `true` is used. */\n isDefault: flag(BOOLEAN_ERROR).optional(),\n })\n .refine((entry) => entry.url !== undefined || entry.file !== undefined, {\n error: \"must have either a `url` or a `file`\",\n });\n\n/** One AppStream release-history entry in `deploy.releases`. */\ntype DeployReleaseOptions = z.infer<typeof releaseSchema>;\n\n/** Release-history entry schema and the source of {@link DeployReleaseOptions}. */\nconst releaseSchema = z.strictObject({\n /** Application version described by this release. */\n version: text(VERSION_ERROR),\n /** Release date in `YYYY-MM-DD` format. */\n date: z.iso.date({ error: \"must be an ISO date (YYYY-MM-DD)\" }),\n /** AppStream release classification. */\n type: z.enum(RELEASE_TYPES, { error: \"must be one of development, snapshot, stable\" }).optional(),\n /** AppStream update urgency. */\n urgency: z.enum(RELEASE_URGENCIES, { error: \"must be one of critical, high, low, medium\" }).optional(),\n /** Release notes, with each entry rendered as a paragraph. */\n notes: textList(\"release note paragraph\", \"must be an array of release note paragraphs\").optional(),\n /** Absolute URL containing further details about the release. */\n url: url(URL_ERROR).optional(),\n});\n\n/** One file extension and MIME type registered through `deploy.fileAssociations`. */\ntype DeployFileAssociationOptions = z.infer<typeof fileAssociationSchema>;\n\n/** File association schema and the source of {@link DeployFileAssociationOptions}. */\nconst fileAssociationSchema = z.strictObject({\n /** File extension to associate with the application, without a leading dot. */\n extension: fileExtension(\"must be a file extension without a leading dot\"),\n /** MIME type registered for the file extension. */\n mimeType: text(\"must be a MIME type such as text/plain\"),\n /** Human-readable description of the file type. */\n description: text(\"must be a description of the file type\").optional(),\n});\n\n/** One desktop launcher action in `deploy.desktopActions`, keyed by its action ID. */\ntype DeployDesktopActionOptions = z.infer<typeof desktopActionSchema>;\n\n/** Desktop launcher action schema and the source of {@link DeployDesktopActionOptions}. */\nconst desktopActionSchema = z.strictObject({\n /** Action label shown in the desktop launcher menu. */\n name: text(\"must be an action name\"),\n /** Arguments passed to the application when the action is activated. */\n args: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n /** Icon theme name used for the action. */\n icon: text(\"must be an icon name\").optional(),\n});\n\nconst brandingSchema = z.strictObject({\n /** Primary AppStream branding color for light mode, in `#rrggbb` format. */\n light: hexColorSchema,\n /** Primary AppStream branding color for dark mode, in `#rrggbb` format. */\n dark: hexColorSchema,\n});\n\n/**\n * A `deploy.extraFiles` entry in object form: the source file, resolved against the project root, that is\n * installed at the entry's prefix-relative destination, and the octal mode it is installed with.\n */\ntype DeployExtraFileOptions = {\n /** Source file path, resolved relative to the project root. */\n source: string;\n /** Octal file mode. Setuid and setgid bits are rejected. */\n mode?: string | undefined;\n};\nconst extraFileSchema: z.ZodType<DeployExtraFileOptions> = z.strictObject({\n /** Source file path, resolved relative to the project root. */\n source: text(SOURCE_PATH_ERROR),\n /** Octal file mode. Setuid and setgid bits are rejected. */\n mode: z\n .string({ error: FILE_MODE_ERROR })\n .regex(FILE_MODE_PATTERN, { error: FILE_MODE_ERROR })\n .refine((mode) => (Number.parseInt(mode, FILE_MODE_RADIX) & PRIVILEGED_FILE_MODE_MASK) === 0, {\n error: FILE_MODE_ERROR,\n })\n .optional(),\n});\n\nconst extraFileEntrySchema = z.union([text(SOURCE_PATH_ERROR), extraFileSchema], { error: EXTRA_FILE_ERROR });\n\nconst launcherEnvSchema = z.record(\n z.string({ error: LAUNCHER_ENV_NAME_ERROR }).regex(LAUNCHER_ENV_NAME_PATTERN, { error: LAUNCHER_ENV_NAME_ERROR }),\n z.string({ error: LAUNCHER_ENV_ERROR }).refine((value) => !value.includes(\"\\0\"), { error: LAUNCHER_ENV_ERROR }),\n { error: (issue) => (issue.code === \"invalid_key\" ? LAUNCHER_ENV_NAME_ERROR : LAUNCHER_ENV_ERROR) },\n);\n\nconst nodeFlagsSchema = z.array(\n z\n .string({ error: NODE_FLAG_ERROR })\n .refine((value) => value.startsWith(\"-\") && !value.includes(\"\\0\"), { error: NODE_FLAG_ERROR }),\n { error: \"must be an array of Node.js flags\" },\n);\n\n/**\n * The `deploy.node` options: where the Node.js runtime bundled with the application comes from, the version it\n * is expected to be, whether its binary is stripped, and whether the launcher enables the compile cache.\n */\ntype DeployNodeOptions = {\n /** Runtime source: an official download, the running Node.js executable, or `path`. Defaults to `download`. */\n source?: \"download\" | \"host\" | \"path\" | undefined;\n /** Expected Node.js version. Downloaded runtimes default to exactly 26.8.2 when omitted. */\n version?: string | undefined;\n /** Node.js executable path relative to the project root, required when `source` is `path`. */\n path?: string | undefined;\n /** Strip the runtime when its architecture matches the host and `strip` is available. Defaults to `true`. */\n shouldStrip?: boolean | undefined;\n /** Enable Node.js compile caching in the generated launcher. Defaults to `true`. */\n shouldUseCompileCache?: boolean | undefined;\n};\nconst nodeRuntimeSchema: z.ZodType<DeployNodeOptions> = z.strictObject({\n /** Runtime source: an official download, the running Node.js executable, or `path`. Defaults to `download`. */\n source: z.enum(NODE_SOURCES, { error: \"must be one of download, host, path\" }).optional(),\n /** Expected Node.js version. Downloaded runtimes default to exactly 26.8.2 when omitted. */\n version: text(\"must be a Node.js version such as 26.7.0\").optional(),\n /** Node.js executable path relative to the project root, required when `source` is `path`. */\n path: text(\"must be a path to a node binary\").optional(),\n /** Strip the runtime when its architecture matches the host and `strip` is available. Defaults to `true`. */\n shouldStrip: flag(BOOLEAN_ERROR).optional(),\n /** Enable Node.js compile caching in the generated launcher. Defaults to `true`. */\n shouldUseCompileCache: flag(BOOLEAN_ERROR).optional(),\n});\n\nconst scriptsSchema = z.strictObject({\n /** Shell script run before installing a Debian or RPM package. */\n preInstall: text(SCRIPT_ERROR).optional(),\n /** Shell script run after installing a Debian or RPM package. */\n postInstall: text(SCRIPT_ERROR).optional(),\n /** Shell script run before removing a Debian or RPM package. */\n preRemove: text(SCRIPT_ERROR).optional(),\n /** Shell script run after removing a Debian or RPM package. */\n postRemove: text(SCRIPT_ERROR).optional(),\n});\n\nconst toolsSchema = z.strictObject({\n /** nFPM executable name or path relative to the project root. Defaults to a verified pinned download. */\n nfpm: text(\"must be an nFPM executable name or path\").optional(),\n});\n\nconst debSchema = z.strictObject({\n /** Debian package name. Defaults to `deploy.binaryName`. */\n packageName: text(\"must be a Debian package name\").optional(),\n /** Debian archive section, derived from the application categories when omitted. */\n section: text(\"must be a Debian archive section\").optional(),\n /** Debian package priority. Defaults to `optional`. */\n priority: text(\"must be a Debian priority\").optional(),\n /** Compression used for the Debian package payload. */\n compression: z.enum(DEB_COMPRESSIONS, { error: \"must be one of gzip, none, xz, zstd\" }).optional(),\n /** Additional Debian control fields, keyed by field name. */\n fields: textRecord(\"must be a control field value\", \"must be a record of control field names to values\").optional(),\n});\n\nconst rpmSchema = z.strictObject({\n /** RPM package name. Defaults to `deploy.binaryName`. */\n packageName: text(\"must be an RPM package name\").optional(),\n /** RPM package group, derived from the application categories when omitted. */\n group: text(\"must be an RPM group\").optional(),\n /** Compression used for the RPM package payload. */\n compression: z.enum(RPM_COMPRESSIONS, { error: \"must be one of gzip, lzma, xz, zstd\" }).optional(),\n /** Installation prefixes that the RPM package allows users to relocate. */\n prefixes: textList(\"prefix\", \"must be an array of relocation prefixes\").optional(),\n});\n\nconst appimageSchema = z.strictObject({\n /** Output file name, derived from the application name, version, and architecture when omitted. */\n fileName: text(\"must be an output file name\").optional(),\n /** Compression explicitly requested from appimagetool. */\n compression: z.literal(\"zstd\", { error: \"must be zstd\" }).optional(),\n /** AppImage update information string embedded in the executable. */\n updateInformation: text(\"must be an AppImage update information string\").optional(),\n /** Custom AppImage runtime file path, resolved relative to the project root. */\n runtimeFile: text(\"must be a path to an AppImage runtime file\").optional(),\n});\n\nconst flatpakSourceSchema = z.strictObject({\n /** Public HTTP or HTTPS Git repository URL. Defaults to the project's Git remote. */\n url: url(\"must be an absolute git URL\").optional(),\n /** Git tag to build, pinned to its commit when `commit` is omitted. */\n tag: text(\"must be a git tag\").optional(),\n /** Git commit to build. Defaults to the configured tag's commit or the current HEAD. */\n commit: text(\"must be a git commit sha\").optional(),\n});\n\nconst flatpakSchema = z.strictObject({\n /** Package local build output or build from a pinned Git source inside the SDK. Defaults to `prebuilt`. */\n mode: z.enum(FLATPAK_MODES, { error: 'must be \"prebuilt\" or \"source\"' }).optional(),\n /** Flatpak runtime ID. Defaults to `org.gnome.Platform`. */\n runtime: text(\"must be a runtime id\").optional(),\n /** Flatpak runtime branch. Defaults to `50`. */\n runtimeVersion: text('must be a runtime branch such as \"50\"').optional(),\n /** Build SDK ID. Defaults to `org.gnome.Sdk`. */\n sdk: text(\"must be an SDK id\").optional(),\n /** Node.js SDK extension used in source mode. Defaults to `org.freedesktop.Sdk.Extension.node26`. */\n nodeExtension: text(\"must be a Node SDK extension id\").optional(),\n /** Additional SDK extension IDs included in the build environment. */\n sdkExtensions: textList(\"SDK extension id\", \"must be an array of SDK extension ids\").optional(),\n /** Optional Flatpak base application ID. */\n base: text(\"must be a base app id\").optional(),\n /** Branch of the base application. */\n baseVersion: text(\"must be a base app version\").optional(),\n /** Exported application branch. Defaults to `stable`. */\n branch: text(\"must be a branch name\").optional(),\n /** Sandbox permissions added to display, IPC, and GPU defaults. Negations remove matching defaults. */\n finishArgs: textList(\"finish argument\", \"must be an array of flatpak finish arguments\").optional(),\n /** Patterns added to header, pkg-config, and static-library cleanup defaults. An empty array disables cleanup. */\n cleanup: textList(\"cleanup pattern\", \"must be an array of cleanup patterns\").optional(),\n /** Additional shell commands appended to the application's Flatpak build commands. */\n buildCommands: textList(\"shell command\", \"must be an array of shell commands\").optional(),\n /** Additional Flatpak manifest modules built before the application module. */\n modules: z.array(z.unknown(), { error: \"must be an array of flatpak module objects\" }).optional(),\n /** Git repository and revision used for source builds. */\n source: flatpakSourceSchema.optional(),\n /** Package manager used for offline source builds, detected from the project's lockfiles when omitted. */\n packageManager: z.enum(PACKAGE_MANAGERS, { error: \"must be one of npm, pnpm, yarn\" }).optional(),\n /** Lockfile path relative to the project root. Defaults to the selected package manager's standard lockfile. */\n lockfile: text(\"must be a path to a lockfile\").optional(),\n /** Runtime repository URL embedded in the bundle. Defaults to Flathub's `.flatpakrepo` URL. */\n runtimeRepo: url(\"must be an absolute .flatpakrepo URL\").optional(),\n /** Emit a `.flatpak` bundle in addition to the local repository. Defaults to `true`. */\n shouldEmitBundle: flag(BOOLEAN_ERROR).optional(),\n /** Install the built application into the current user's Flatpak installation. Defaults to `false`. */\n shouldInstall: flag(BOOLEAN_ERROR).optional(),\n /** Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable. */\n shouldUseRofilesFuse: flag(BOOLEAN_ERROR).optional(),\n});\n\nconst debSigningSchema = z.strictObject({\n /** PGP private key file used to sign the Debian package. */\n keyFile: text(KEY_FILE_ERROR),\n /** PGP signing key ID. */\n keyId: text(KEY_ID_ERROR).optional(),\n /** Debian package signing method. */\n method: z.enum(DEB_SIGN_METHODS, { error: 'must be \"debsign\" or \"dpkg-sig\"' }).optional(),\n /** Debian signature role. */\n type: z.enum(DEB_SIGN_TYPES, { error: \"must be one of archive, maint, origin\" }).optional(),\n /** Name and email address recorded as the signer. */\n signer: text(\"must be a signer name and email\").optional(),\n});\n\nconst rpmSigningSchema = z.strictObject({\n /** PGP private key file used to sign the RPM package. */\n keyFile: text(KEY_FILE_ERROR),\n /** PGP signing key ID. */\n keyId: text(KEY_ID_ERROR).optional(),\n});\n\nconst flatpakSigningSchema = z.strictObject({\n /** GPG key ID used to sign the Flatpak bundle. */\n gpgKeyId: text(\"must be a GPG key id\"),\n /** GPG home directory containing the signing key. */\n gpgHomeDir: text(\"must be a path to a GPG home directory\").optional(),\n});\n\nconst appimageSigningSchema = z.strictObject({\n /** GPG key ID used by appimagetool to sign the AppImage. */\n gpgKeyId: text(\"must be a GPG key id\"),\n});\n\nconst signingSchema = z.strictObject({\n /** AppImage signing options. */\n appimage: appimageSigningSchema.optional(),\n /** Debian package signing options. */\n deb: debSigningSchema.optional(),\n /** Flatpak bundle signing options. */\n flatpak: flatpakSigningSchema.optional(),\n /** RPM package signing options. */\n rpm: rpmSigningSchema.optional(),\n});\n\nconst extraRelationsSchema = z.strictObject({\n /** Recommended packages that extend the application's functionality. */\n recommends: relationsSchema.optional(),\n /** Suggested companion packages. */\n suggests: relationsSchema.optional(),\n /** Package names or capabilities supplied by this package. */\n provides: relationsSchema.optional(),\n /** Packages that cannot be installed alongside this package. */\n conflicts: relationsSchema.optional(),\n /** Packages whose files this package may replace. */\n replaces: relationsSchema.optional(),\n /** Debian packages made incompatible by installing this package. Uses the `deb` entries. */\n breaks: relationsSchema.optional(),\n /** Debian dependencies required before unpacking this package. Uses the `deb` entries. */\n preDepends: relationsSchema.optional(),\n});\n\nconst deploySchema = z.strictObject({\n /** Package formats to build. Defaults to `[\"flatpak\"]`; overridden by `gtkx deploy --target`. */\n targets: z\n .array(z.enum(DEPLOY_TARGET_NAMES, { error: \"must be one of appimage, deb, flatpak, rpm\" }), {\n error: \"must be an array of deploy targets\",\n })\n .optional(),\n /** Target CPU architectures. Defaults to the host architecture; overridden by `gtkx deploy --arch`. */\n architectures: z\n .array(z.enum(DEPLOY_ARCH_NAMES, { error: \"must be one of arm64, x64\" }), {\n error: \"must be an array of deploy architectures\",\n })\n .optional(),\n /** Deployment directory relative to the project root. Defaults to `build`, with packages in its `out` directory. */\n outDir: text(\"must be a directory path relative to the project root\").optional(),\n /** Display name, derived from package.json's name or the application ID when omitted. */\n name: text(\"must be the display name shown in the launcher\").optional(),\n /** Generic application description shown by desktop launchers, such as `Text Editor`. */\n genericName: text(\"must be a generic application name\").optional(),\n /** Launcher command name, derived from package.json's name or the application ID when omitted. */\n binaryName: text(\"must be a kebab-case command name\").optional(),\n /** Application version. Defaults to the version in package.json. */\n version: text(VERSION_ERROR).optional(),\n /** Debian packaging revision and RPM release. Defaults to `1`. */\n release: text(\"must be a packaging revision\").optional(),\n /** Non-negative Debian and RPM version epoch, omitted from package metadata unless configured. */\n epoch: z.int({ error: EPOCH_ERROR }).min(0, { error: EPOCH_ERROR }).optional(),\n /** Single-line summary without a trailing period. Defaults to the first line of package.json's description. */\n summary: text(\"must be a single-line summary without a trailing period\").optional(),\n /** Long description as paragraphs. Defaults to the summary when omitted or empty. */\n description: textList(\"description paragraph\", \"must be an array of description paragraphs\").optional(),\n /** Search keywords included in the desktop entry and AppStream metadata. */\n keywords: textList(\"search keyword\", \"must be an array of search keywords\").optional(),\n /** Freedesktop application categories used by launchers, software centers, and package metadata. */\n categories: textList(\"freedesktop category\", \"must be an array of freedesktop categories\").optional(),\n /** Supported MIME types, combined with types from file associations and URL protocols. */\n mimeTypes: textList(\"MIME type\", \"must be an array of MIME types\").optional(),\n /** Developer identity and package maintainer details. */\n developer: developerSchema.optional(),\n /** Application license as an SPDX expression. Defaults to the license in package.json. */\n license: text(SPDX_ERROR).optional(),\n /** License file path relative to the project root, detected from common LICENSE or COPYING names when omitted. */\n licenseFile: text(\"must be a path to a license file\").optional(),\n /** SPDX license expression for the AppStream metadata. Defaults to `CC0-1.0`. */\n metadataLicense: text(SPDX_ERROR).optional(),\n /** Copyright notice. Defaults to the build year and developer name. */\n copyright: text(\"must be a copyright line\").optional(),\n /** Application homepage URL. Defaults to the homepage in package.json. */\n homepage: url(URL_ERROR).optional(),\n /** Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`. */\n urls: z\n .partialRecord(z.enum(URL_KINDS), url(URL_ERROR), {\n error: \"must be a record of AppStream url kinds to URLs\",\n })\n .optional(),\n /**\n * Screenshots for software centers. Each entry requires a `url` or `file`.\n * @see {@link DeployScreenshotOptions} for the fields accepted by each entry.\n */\n screenshots: z.array(screenshotSchema, { error: \"must be an array of screenshots\" }).optional(),\n /** Base URL for screenshot files, inferred from a GitHub or GitLab remote when omitted. */\n screenshotBaseUrl: url(\"must be an absolute base URL\").optional(),\n /** Primary branding colors included in AppStream metadata. */\n branding: brandingSchema.optional(),\n /** OARS 1.1 content-rating attributes mapped to their intensities. */\n contentRating: z\n .record(z.string(), z.enum(OARS_INTENSITIES, { error: \"must be one of intense, mild, moderate, none\" }), {\n error: \"must be a record of OARS 1.1 attribute ids to intensities\",\n })\n .optional(),\n /**\n * AppStream release history, sorted newest first. Defaults to the application version and build date.\n * @see {@link DeployReleaseOptions} for the fields accepted by each entry.\n */\n releases: z.array(releaseSchema, { error: \"must be an array of releases\" }).optional(),\n /** Application arguments included in the desktop entry's launch command. */\n execArgs: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n /** Environment variables exported by the generated launcher. Keys must be POSIX environment names. */\n launcherEnv: launcherEnvSchema.optional(),\n /** Node.js flags placed before the application bundle in the generated launcher. */\n nodeFlags: nodeFlagsSchema.optional(),\n /**\n * File extensions and MIME types registered for the application.\n * @see {@link DeployFileAssociationOptions} for the fields accepted by each entry.\n */\n fileAssociations: z.array(fileAssociationSchema, { error: \"must be an array of file associations\" }).optional(),\n /** URL schemes handled by the application, registered as `x-scheme-handler` MIME types. */\n protocols: textList(\"URL scheme\", \"must be an array of URL schemes\").optional(),\n /**\n * Desktop launcher actions keyed by action ID.\n * @see {@link DeployDesktopActionOptions} for the fields accepted by each entry.\n */\n desktopActions: z\n .record(z.string(), desktopActionSchema, { error: \"must be a record of action ids to actions\" })\n .optional(),\n /**\n * Additional desktop entry keys, overriding non-reserved generated values.\n * `DBusActivatable` and `Version` are rejected; use `deploy.isDbusActivatable` for D-Bus activation.\n */\n desktopEntry: textRecord(\n \"must be a desktop entry value\",\n \"must be a record of desktop entry keys to values\",\n ).optional(),\n /** Additional XML fragments appended to the AppStream component. */\n metainfoExtra: textList(\"AppStream XML fragment\", \"must be an array of AppStream XML fragments\").optional(),\n /** Enable D-Bus activation in the desktop entry and generate a session bus service file. Defaults to `false`. */\n isDbusActivatable: flag(BOOLEAN_ERROR).optional(),\n /** Extra files keyed by destination inside the install prefix, with source paths relative to the project root. */\n extraFiles: relativePathRecord(\n \"must be a destination path inside the install prefix, without a leading slash or a .. segment\",\n extraFileEntrySchema,\n \"must be a record of prefix-relative destinations to source paths or { source, mode } entries\",\n ).optional(),\n /** Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies. */\n minimumLibraryVersions: minimumLibraryVersionsSchema.optional(),\n /** Additional Debian and RPM dependencies merged with automatically detected dependencies. */\n depends: relationsSchema.optional(),\n /** Additional package relationships for Debian and RPM. */\n relations: extraRelationsSchema.optional(),\n /** Installation and removal scripts for Debian and RPM packages. */\n scripts: scriptsSchema.optional(),\n /** Node.js runtime bundled with prebuilt packages and launcher compile-cache settings. */\n node: nodeRuntimeSchema.optional(),\n /** Overrides for executables used to build packages. */\n tools: toolsSchema.optional(),\n /** Per-format package signing options. */\n signing: signingSchema.optional(),\n /** AppImage packaging options. */\n appimage: appimageSchema.optional(),\n /** Debian package metadata and compression options. */\n deb: debSchema.optional(),\n /** Flatpak runtime, sandbox, build, and distribution options. */\n flatpak: flatpakSchema.optional(),\n /** RPM package metadata and compression options. */\n rpm: rpmSchema.optional(),\n});\n\nexport {\n deploySchema,\n type DeployDesktopActionOptions,\n type DeployExtraFileOptions,\n type DeployFileAssociationOptions,\n type DeployNodeOptions,\n type DeployReleaseOptions,\n type DeployScreenshotOptions,\n};\n"]}
1
+ {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../src/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAExH,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAU,CAAC;AACjE,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAC1D,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAC/D,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,KAAK,CAAU,CAAC;AACpD,MAAM,mBAAmB,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAU,CAAC;AAC3E,MAAM,aAAa,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAU,CAAC;AACtD,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAC3D,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAU,CAAC;AAC1E,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAC1D,MAAM,aAAa,GAAG,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AACrE,MAAM,iBAAiB,GAAG,CAAC,UAAU,EA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cesContent":["import { z } from \"zod\";\nimport { fileExtension, flag, girLibrary, relativePathRecord, text, textList, textRecord, url } from \"./schema-text.ts\";\n\nconst DEB_COMPRESSIONS = [\"gzip\", \"none\", \"xz\", \"zstd\"] as const;\nconst DEB_SIGN_METHODS = [\"debsign\", \"dpkg-sig\"] as const;\nconst DEB_SIGN_TYPES = [\"archive\", \"maint\", \"origin\"] as const;\nconst DEPLOY_ARCH_NAMES = [\"arm64\", \"x64\"] as const;\nconst DEPLOY_TARGET_NAMES = [\"appimage\", \"deb\", \"flatpak\", \"rpm\"] as const;\nconst FLATPAK_MODES = [\"prebuilt\", \"source\"] as const;\nconst NODE_SOURCES = [\"download\", \"host\", \"path\"] as const;\nconst OARS_INTENSITIES = [\"intense\", \"mild\", \"moderate\", \"none\"] as const;\nconst PACKAGE_MANAGERS = [\"npm\", \"pnpm\", \"yarn\"] as const;\nconst RELEASE_TYPES = [\"development\", \"snapshot\", \"stable\"] as const;\nconst RELEASE_URGENCIES = [\"critical\", \"high\", \"low\", \"medium\"] as const;\nconst RPM_COMPRESSIONS = [\"gzip\", \"lzma\", \"xz\", \"zstd\"] as const;\n\nconst URL_KINDS = [\n \"bugtracker\",\n \"contact\",\n \"contribute\",\n \"donation\",\n \"faq\",\n \"help\",\n \"translate\",\n \"vcs-browser\",\n] as const;\n\nconst BOOLEAN_ERROR = \"must be a boolean\";\nconst EPOCH_ERROR = \"must be a non-negative integer\";\nconst EXTRA_FILE_ERROR = \"must be a source path or a { source, mode } entry\";\nconst FILE_MODE_ERROR = \"must be an octal file mode without setuid or setgid bits, such as 755\";\nconst FILE_MODE_PATTERN = /^[0-7]{3,4}$/;\nconst FILE_MODE_RADIX = 8;\nconst PRIVILEGED_FILE_MODE_MASK = 0o6000;\nconst HEX_COLOR_ERROR = \"must be a #rrggbb color\";\nconst HEX_COLOR_PATTERN = /^#[\\dA-Fa-f]{6}$/;\nconst KEY_FILE_ERROR = \"must be a path to a PGP key file\";\nconst KEY_ID_ERROR = \"must be a PGP key id\";\nconst LAUNCHER_ENV_ERROR = \"must be a record of POSIX environment names to values without null bytes\";\nconst LAUNCHER_ENV_NAME_ERROR = \"must be a POSIX environment name\";\nconst LAUNCHER_ENV_NAME_PATTERN = /^[A-Za-z_]\\w*$/;\nconst MINIMUM_LIBRARY_VERSION_ERROR = \"must be a version such as 4.18\";\nconst MINIMUM_LIBRARY_VERSION_PATTERN = /^\\d+(?:\\.\\d+)*$/;\nconst MINIMUM_LIBRARY_VERSIONS_ERROR = \"must be a record of GIR library ids to a minimum version\";\nconst NODE_FLAG_ERROR = \"must be a Node.js flag beginning with a hyphen and containing no null bytes\";\nconst LIBRARY_ID_ERROR = 'must be a GIR library identifier of the form \"Name-Version\", such as \"Adw-1\"';\nconst SCRIPT_ERROR = \"must be a path to a shell script\";\nconst SOURCE_PATH_ERROR = \"must be a source path\";\nconst SPDX_ERROR = \"must be an SPDX license expression\";\nconst URL_ERROR = \"must be an absolute URL\";\nconst VERSION_ERROR = \"must be a version string\";\nconst hexColorSchema = z.string({ error: HEX_COLOR_ERROR }).regex(HEX_COLOR_PATTERN, { error: HEX_COLOR_ERROR });\n\nconst minimumLibraryVersionSchema = z\n .string({ error: MINIMUM_LIBRARY_VERSION_ERROR })\n .regex(MINIMUM_LIBRARY_VERSION_PATTERN, { error: MINIMUM_LIBRARY_VERSION_ERROR });\n\nconst minimumLibraryVersionsSchema = z.record(girLibrary(LIBRARY_ID_ERROR), minimumLibraryVersionSchema, {\n error: MINIMUM_LIBRARY_VERSIONS_ERROR,\n});\n\n/** Package relations of one kind, such as dependencies, in Debian and RPM dependency syntax. */\ntype DeployPackageRelationOptions = {\n /** Package relations expressed in Debian dependency syntax. */\n deb?: string[] | undefined;\n /** Package relations expressed in RPM dependency syntax. */\n rpm?: string[] | undefined;\n};\n\nconst relationsSchema = z.strictObject({\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n rpm: textList(\"RPM package relation\", \"must be an array of RPM package relations\").optional(),\n}) satisfies z.ZodType<DeployPackageRelationOptions>;\n\n/** Package relations of a kind only Debian packages have, in Debian dependency syntax. */\ntype DeployDebPackageRelationOptions = {\n /** Package relations expressed in Debian dependency syntax. RPM has no equivalent relation. */\n deb?: string[] | undefined;\n};\n\nconst debRelationsSchema = z.strictObject({\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n}) satisfies z.ZodType<DeployDebPackageRelationOptions>;\n\n/** The `deploy.developer` options: who develops and maintains the application. */\ntype DeployDeveloperOptions = {\n /** Reverse-DNS developer identifier, derived from the application ID when omitted. */\n id?: string | undefined;\n /** Developer or organization name. Defaults to the author in package.json. */\n name?: string | undefined;\n /** Maintainer email address. Defaults to the author's email in package.json. */\n email?: string | undefined;\n};\n\nconst developerSchema = z.strictObject({\n id: text(\"must be a reverse-DNS developer id\").optional(),\n name: text(\"must be a developer or organization name\").optional(),\n email: text(\"must be an email address\").optional(),\n}) satisfies z.ZodType<DeployDeveloperOptions>;\n\n/** One software-center screenshot in `deploy.screenshots`. Either `url` or `file` must be set. */\ntype DeployScreenshotOptions = {\n /** Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`. */\n url?: string | undefined;\n /** Screenshot path relative to the project root, resolved against `screenshotBaseUrl`. */\n file?: string | undefined;\n /** Caption displayed with the screenshot in software centers. */\n caption?: string | undefined;\n /** Marks the primary screenshot. Only the first entry set to `true` is used. */\n isDefault?: boolean | undefined;\n};\n\nconst screenshotSchema = z\n .strictObject({\n url: url(\"must be an absolute URL to a PNG or JPEG\").optional(),\n file: text(\"must be an image path relative to the project root\").optional(),\n caption: text(\"must be a screenshot caption\").optional(),\n isDefault: flag(BOOLEAN_ERROR).optional(),\n })\n .refine((entry) => entry.url !== undefined || entry.file !== undefined, {\n error: \"must have either a `url` or a `file`\",\n }) satisfies z.ZodType<DeployScreenshotOptions>;\n\n/** One AppStream release-history entry in `deploy.releases`. */\ntype DeployReleaseOptions = {\n /** Application version described by this release. */\n version: string;\n /** Release date in `YYYY-MM-DD` format. */\n date: string;\n /** AppStream release classification. */\n type?: \"development\" | \"snapshot\" | \"stable\" | undefined;\n /** AppStream update urgency. */\n urgency?: \"critical\" | \"high\" | \"low\" | \"medium\" | undefined;\n /** Release notes, with each entry rendered as a paragraph. */\n notes?: string[] | undefined;\n /** Absolute URL containing further details about the release. */\n url?: string | undefined;\n};\n\nconst releaseSchema = z.strictObject({\n version: text(VERSION_ERROR),\n date: z.iso.date({ error: \"must be an ISO date (YYYY-MM-DD)\" }),\n type: z.enum(RELEASE_TYPES, { error: \"must be one of development, snapshot, stable\" }).optional(),\n urgency: z.enum(RELEASE_URGENCIES, { error: \"must be one of critical, high, low, medium\" }).optional(),\n notes: textList(\"release note paragraph\", \"must be an array of release note paragraphs\").optional(),\n url: url(URL_ERROR).optional(),\n}) satisfies z.ZodType<DeployReleaseOptions>;\n\n/** One file extension and MIME type registered through `deploy.fileAssociations`. */\ntype DeployFileAssociationOptions = {\n /** File extension to associate with the application, without a leading dot. */\n extension: string;\n /** MIME type registered for the file extension. */\n mimeType: string;\n /** Human-readable description of the file type. */\n description?: string | undefined;\n};\n\nconst fileAssociationSchema = z.strictObject({\n extension: fileExtension(\"must be a file extension without a leading dot\"),\n mimeType: text(\"must be a MIME type such as text/plain\"),\n description: text(\"must be a description of the file type\").optional(),\n}) satisfies z.ZodType<DeployFileAssociationOptions>;\n\n/** One desktop launcher action in `deploy.desktopActions`, keyed by its action ID. */\ntype DeployDesktopActionOptions = {\n /** Action label shown in the desktop launcher menu. */\n name: string;\n /**\n * Arguments appended to the launch command when the action is chosen. Launchers activate the `app.<id>`\n * application action of a D-Bus-activatable application instead of running this command.\n */\n args?: string[] | undefined;\n /** Icon theme name used for the action. */\n icon?: string | undefined;\n};\n\nconst desktopActionSchema = z.strictObject({\n name: text(\"must be an action name\"),\n args: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n icon: text(\"must be an icon name\").optional(),\n}) satisfies z.ZodType<DeployDesktopActionOptions>;\n\n/** The `deploy.branding` colors software centers use around the application's listing. */\ntype DeployBrandingOptions = {\n /** Primary AppStream branding color for light mode, in `#rrggbb` format. */\n light: string;\n /** Primary AppStream branding color for dark mode, in `#rrggbb` format. */\n dark: string;\n};\n\nconst brandingSchema = z.strictObject({\n light: hexColorSchema,\n dark: hexColorSchema,\n}) satisfies z.ZodType<DeployBrandingOptions>;\n\n/**\n * A `deploy.extraFiles` entry in object form: the source file or directory, resolved against the project root,\n * that is installed at the entry's prefix-relative destination, and the octal mode it is installed with.\n */\ntype DeployExtraFileOptions = {\n /** Source file or directory path, resolved relative to the project root. */\n source: string;\n /** Octal file mode, applied to every file of a directory source. Setuid and setgid bits are rejected. */\n mode?: string | undefined;\n};\n\nconst extraFileSchema = z.strictObject({\n source: text(SOURCE_PATH_ERROR),\n mode: z\n .string({ error: FILE_MODE_ERROR })\n .regex(FILE_MODE_PATTERN, { error: FILE_MODE_ERROR })\n .refine((mode) => (Number.parseInt(mode, FILE_MODE_RADIX) & PRIVILEGED_FILE_MODE_MASK) === 0, {\n error: FILE_MODE_ERROR,\n })\n .optional(),\n}) satisfies z.ZodType<DeployExtraFileOptions>;\n\nconst extraFileEntrySchema = z.union([text(SOURCE_PATH_ERROR), extraFileSchema], { error: EXTRA_FILE_ERROR });\n\nconst launcherEnvSchema = z.record(\n z.string({ error: LAUNCHER_ENV_NAME_ERROR }).regex(LAUNCHER_ENV_NAME_PATTERN, { error: LAUNCHER_ENV_NAME_ERROR }),\n z.string({ error: LAUNCHER_ENV_ERROR }).refine((value) => !value.includes(\"\\0\"), { error: LAUNCHER_ENV_ERROR }),\n { error: (issue) => (issue.code === \"invalid_key\" ? LAUNCHER_ENV_NAME_ERROR : LAUNCHER_ENV_ERROR) },\n);\n\nconst nodeFlagsSchema = z.array(\n z\n .string({ error: NODE_FLAG_ERROR })\n .refine((value) => value.startsWith(\"-\") && !value.includes(\"\\0\"), { error: NODE_FLAG_ERROR }),\n { error: \"must be an array of Node.js flags\" },\n);\n\n/**\n * The `deploy.node` options: where the Node.js runtime bundled with the application comes from, the version it\n * is expected to be, whether its binary is stripped, and whether the launcher enables the compile cache.\n */\ntype DeployNodeOptions = {\n /** Runtime source: an official download, the running Node.js executable, or `path`. Defaults to `download`. */\n source?: \"download\" | \"host\" | \"path\" | undefined;\n /** Expected Node.js version. Downloaded runtimes default to exactly 26.8.2 when omitted. */\n version?: string | undefined;\n /** Node.js executable path relative to the project root, required when `source` is `path`. */\n path?: string | undefined;\n /** Strip the runtime when its architecture matches the host and `strip` is available. Defaults to `true`. */\n shouldStrip?: boolean | undefined;\n /** Enable Node.js compile caching in the generated launcher. Defaults to `true`. */\n shouldUseCompileCache?: boolean | undefined;\n};\n\nconst nodeRuntimeSchema = z.strictObject({\n source: z.enum(NODE_SOURCES, { error: \"must be one of download, host, path\" }).optional(),\n version: text(\"must be a Node.js version such as 26.7.0\").optional(),\n path: text(\"must be a path to a node binary\").optional(),\n shouldStrip: flag(BOOLEAN_ERROR).optional(),\n shouldUseCompileCache: flag(BOOLEAN_ERROR).optional(),\n}) satisfies z.ZodType<DeployNodeOptions>;\n\n/**\n * The `deploy.scripts` options: maintainer scripts for Debian and RPM packages. Each value is a path to a\n * shell script file, not inline shell; the package carries the file's content.\n */\ntype DeployScriptsOptions = {\n /** Path to a shell script, relative to the project root, run before installing a Debian or RPM package. */\n preInstall?: string | undefined;\n /** Path to a shell script, relative to the project root, run after installing a Debian or RPM package. */\n postInstall?: string | undefined;\n /** Path to a shell script, relative to the project root, run before removing a Debian or RPM package. */\n preRemove?: string | undefined;\n /** Path to a shell script, relative to the project root, run after removing a Debian or RPM package. */\n postRemove?: string | undefined;\n};\n\nconst scriptsSchema = z.strictObject({\n preInstall: text(SCRIPT_ERROR).optional(),\n postInstall: text(SCRIPT_ERROR).optional(),\n preRemove: text(SCRIPT_ERROR).optional(),\n postRemove: text(SCRIPT_ERROR).optional(),\n}) satisfies z.ZodType<DeployScriptsOptions>;\n\n/** The `deploy.tools` options: executables `gtkx deploy` runs instead of the ones it downloads. */\ntype DeployToolsOptions = {\n /** nFPM executable name or path relative to the project root. Defaults to a verified pinned download. */\n nfpm?: string | undefined;\n};\n\nconst toolsSchema = z.strictObject({\n nfpm: text(\"must be an nFPM executable name or path\").optional(),\n}) satisfies z.ZodType<DeployToolsOptions>;\n\n/** The `deploy.deb` options: Debian package metadata and compression. */\ntype DeployDebOptions = {\n /** Debian package name. Defaults to `deploy.binaryName`. */\n packageName?: string | undefined;\n /** Debian archive section, derived from the application categories when omitted. */\n section?: string | undefined;\n /** Debian package priority. Defaults to `optional`. */\n priority?: string | undefined;\n /** Compression used for the Debian package payload. */\n compression?: \"gzip\" | \"none\" | \"xz\" | \"zstd\" | undefined;\n /** Additional Debian control fields, keyed by field name. */\n fields?: Record<string, string> | undefined;\n};\n\nconst debSchema = z.strictObject({\n packageName: text(\"must be a Debian package name\").optional(),\n section: text(\"must be a Debian archive section\").optional(),\n priority: text(\"must be a Debian priority\").optional(),\n compression: z.enum(DEB_COMPRESSIONS, { error: \"must be one of gzip, none, xz, zstd\" }).optional(),\n fields: textRecord(\"must be a control field value\", \"must be a record of control field names to values\").optional(),\n}) satisfies z.ZodType<DeployDebOptions>;\n\n/** The `deploy.rpm` options: RPM package metadata and compression. */\ntype DeployRpmOptions = {\n /** RPM package name. Defaults to `deploy.binaryName`. */\n packageName?: string | undefined;\n /** RPM package group, derived from the application categories when omitted. */\n group?: string | undefined;\n /** Compression used for the RPM package payload. */\n compression?: \"gzip\" | \"lzma\" | \"xz\" | \"zstd\" | undefined;\n /** Installation prefixes that the RPM package allows users to relocate. */\n prefixes?: string[] | undefined;\n};\n\nconst rpmSchema = z.strictObject({\n packageName: text(\"must be an RPM package name\").optional(),\n group: text(\"must be an RPM group\").optional(),\n compression: z.enum(RPM_COMPRESSIONS, { error: \"must be one of gzip, lzma, xz, zstd\" }).optional(),\n prefixes: textList(\"prefix\", \"must be an array of relocation prefixes\").optional(),\n}) satisfies z.ZodType<DeployRpmOptions>;\n\n/** The `deploy.appimage` options: AppImage file name, compression, update information and runtime. */\ntype DeployAppImageOptions = {\n /** Output file name, derived from the application name, version, and architecture when omitted. */\n fileName?: string | undefined;\n /** Compression explicitly requested from appimagetool. */\n compression?: \"zstd\" | undefined;\n /** AppImage update information string embedded in the executable. */\n updateInformation?: string | undefined;\n /** Custom AppImage runtime file path, resolved relative to the project root. */\n runtimeFile?: string | undefined;\n};\n\nconst appimageSchema = z.strictObject({\n fileName: text(\"must be an output file name\").optional(),\n compression: z.literal(\"zstd\", { error: \"must be zstd\" }).optional(),\n updateInformation: text(\"must be an AppImage update information string\").optional(),\n runtimeFile: text(\"must be a path to an AppImage runtime file\").optional(),\n}) satisfies z.ZodType<DeployAppImageOptions>;\n\n/** The `deploy.flatpak.source` options: the Git revision a source-mode Flatpak builds. */\ntype DeployFlatpakSourceOptions = {\n /** Public HTTP or HTTPS Git repository URL. Defaults to the project's Git remote. */\n url?: string | undefined;\n /** Git tag to build, pinned to its commit when `commit` is omitted. */\n tag?: string | undefined;\n /** Git commit to build. Defaults to the configured tag's commit or the current HEAD. */\n commit?: string | undefined;\n};\n\nconst flatpakSourceSchema = z.strictObject({\n url: url(\"must be an absolute git URL\").optional(),\n tag: text(\"must be a git tag\").optional(),\n commit: text(\"must be a git commit sha\").optional(),\n}) satisfies z.ZodType<DeployFlatpakSourceOptions>;\n\n/** The `deploy.flatpak` options: runtime, sandbox permissions, build and distribution of the Flatpak. */\ntype DeployFlatpakOptions = {\n /** Package local build output or build from a pinned Git source inside the SDK. Defaults to `prebuilt`. */\n mode?: \"prebuilt\" | \"source\" | undefined;\n /** Flatpak runtime ID. Defaults to `org.gnome.Platform`. */\n runtime?: string | undefined;\n /** Flatpak runtime branch. Defaults to `51`. */\n runtimeVersion?: string | undefined;\n /** Build SDK ID. Defaults to `org.gnome.Sdk`. */\n sdk?: string | undefined;\n /** Node.js SDK extension used in source mode. Defaults to `org.freedesktop.Sdk.Extension.node26`. */\n nodeExtension?: string | undefined;\n /** Additional SDK extension IDs included in the build environment. */\n sdkExtensions?: string[] | undefined;\n /** Optional Flatpak base application ID. */\n base?: string | undefined;\n /** Branch of the base application. */\n baseVersion?: string | undefined;\n /** Exported application branch. Defaults to `stable`. */\n branch?: string | undefined;\n /** Sandbox permissions added to display, IPC, and GPU defaults. Negations remove matching defaults. */\n finishArgs?: string[] | undefined;\n /** Patterns added to header, pkg-config, and static-library cleanup defaults. An empty array disables cleanup. */\n cleanup?: string[] | undefined;\n /** Additional shell commands appended to the application's Flatpak build commands. */\n buildCommands?: string[] | undefined;\n /** Additional Flatpak manifest modules built before the application module. */\n modules?: unknown[] | undefined;\n /** Git repository and revision used for source builds. */\n source?: DeployFlatpakSourceOptions | undefined;\n /** Package manager used for offline source builds, detected from the project's lockfiles when omitted. */\n packageManager?: \"npm\" | \"pnpm\" | \"yarn\" | undefined;\n /** Lockfile path relative to the project root. Defaults to the selected package manager's standard lockfile. */\n lockfile?: string | undefined;\n /** Runtime repository URL embedded in the bundle. Defaults to Flathub's `.flatpakrepo` URL. */\n runtimeRepo?: string | undefined;\n /** Emit a `.flatpak` bundle in addition to the local repository. Defaults to `true`. */\n shouldEmitBundle?: boolean | undefined;\n /** Install the built application into the current user's Flatpak installation. Defaults to `false`. */\n shouldInstall?: boolean | undefined;\n /** Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable. */\n shouldUseRofilesFuse?: boolean | undefined;\n};\n\nconst flatpakSchema = z.strictObject({\n mode: z.enum(FLATPAK_MODES, { error: 'must be \"prebuilt\" or \"source\"' }).optional(),\n runtime: text(\"must be a runtime id\").optional(),\n runtimeVersion: text('must be a runtime branch such as \"51\"').optional(),\n sdk: text(\"must be an SDK id\").optional(),\n nodeExtension: text(\"must be a Node SDK extension id\").optional(),\n sdkExtensions: textList(\"SDK extension id\", \"must be an array of SDK extension ids\").optional(),\n base: text(\"must be a base app id\").optional(),\n baseVersion: text(\"must be a base app version\").optional(),\n branch: text(\"must be a branch name\").optional(),\n finishArgs: textList(\"finish argument\", \"must be an array of flatpak finish arguments\").optional(),\n cleanup: textList(\"cleanup pattern\", \"must be an array of cleanup patterns\").optional(),\n buildCommands: textList(\"shell command\", \"must be an array of shell commands\").optional(),\n modules: z.array(z.unknown(), { error: \"must be an array of flatpak module objects\" }).optional(),\n source: flatpakSourceSchema.optional(),\n packageManager: z.enum(PACKAGE_MANAGERS, { error: \"must be one of npm, pnpm, yarn\" }).optional(),\n lockfile: text(\"must be a path to a lockfile\").optional(),\n runtimeRepo: url(\"must be an absolute .flatpakrepo URL\").optional(),\n shouldEmitBundle: flag(BOOLEAN_ERROR).optional(),\n shouldInstall: flag(BOOLEAN_ERROR).optional(),\n shouldUseRofilesFuse: flag(BOOLEAN_ERROR).optional(),\n}) satisfies z.ZodType<DeployFlatpakOptions>;\n\n/** The `deploy.signing.deb` options: the key and method that sign the Debian package. */\ntype DeployDebSigningOptions = {\n /** PGP private key file used to sign the Debian package. */\n keyFile: string;\n /** PGP signing key ID. */\n keyId?: string | undefined;\n /** Debian package signing method. */\n method?: \"debsign\" | \"dpkg-sig\" | undefined;\n /** Debian signature role. */\n type?: \"archive\" | \"maint\" | \"origin\" | undefined;\n /** Name and email address recorded as the signer. */\n signer?: string | undefined;\n};\n\nconst debSigningSchema = z.strictObject({\n keyFile: text(KEY_FILE_ERROR),\n keyId: text(KEY_ID_ERROR).optional(),\n method: z.enum(DEB_SIGN_METHODS, { error: 'must be \"debsign\" or \"dpkg-sig\"' }).optional(),\n type: z.enum(DEB_SIGN_TYPES, { error: \"must be one of archive, maint, origin\" }).optional(),\n signer: text(\"must be a signer name and email\").optional(),\n}) satisfies z.ZodType<DeployDebSigningOptions>;\n\n/** The `deploy.signing.rpm` options: the key that signs the RPM package. */\ntype DeployRpmSigningOptions = {\n /** PGP private key file used to sign the RPM package. */\n keyFile: string;\n /** PGP signing key ID. */\n keyId?: string | undefined;\n};\n\nconst rpmSigningSchema = z.strictObject({\n keyFile: text(KEY_FILE_ERROR),\n keyId: text(KEY_ID_ERROR).optional(),\n}) satisfies z.ZodType<DeployRpmSigningOptions>;\n\n/** The `deploy.signing.flatpak` options: the GPG key that signs the Flatpak repository commit. */\ntype DeployFlatpakSigningOptions = {\n /**\n * GPG key ID that signs the Flatpak repository commit. The bundle embeds its public key, so\n * `flatpak install --bundle` verifies the signature.\n */\n gpgKeyId: string;\n /** GPG home directory containing the signing key. */\n gpgHomeDir?: string | undefined;\n};\n\nconst flatpakSigningSchema = z.strictObject({\n gpgKeyId: text(\"must be a GPG key id\"),\n gpgHomeDir: text(\"must be a path to a GPG home directory\").optional(),\n}) satisfies z.ZodType<DeployFlatpakSigningOptions>;\n\n/** The `deploy.signing.appimage` options: the GPG key that signs the AppImage. */\ntype DeployAppImageSigningOptions = {\n /** GPG key ID used by appimagetool to sign the AppImage. */\n gpgKeyId: string;\n};\n\nconst appimageSigningSchema = z.strictObject({\n gpgKeyId: text(\"must be a GPG key id\"),\n}) satisfies z.ZodType<DeployAppImageSigningOptions>;\n\n/** The `deploy.signing` options: how each package format is signed. Formats without an entry stay unsigned. */\ntype DeploySigningOptions = {\n /** AppImage signing options. */\n appimage?: DeployAppImageSigningOptions | undefined;\n /** Debian package signing options. */\n deb?: DeployDebSigningOptions | undefined;\n /** Flatpak bundle signing options. */\n flatpak?: DeployFlatpakSigningOptions | undefined;\n /** RPM package signing options. */\n rpm?: DeployRpmSigningOptions | undefined;\n};\n\nconst signingSchema = z.strictObject({\n appimage: appimageSigningSchema.optional(),\n deb: debSigningSchema.optional(),\n flatpak: flatpakSigningSchema.optional(),\n rpm: rpmSigningSchema.optional(),\n}) satisfies z.ZodType<DeploySigningOptions>;\n\n/** The `deploy.relations` options: package relationships besides dependencies, for Debian and RPM. */\ntype DeployRelationsOptions = {\n /** Recommended packages that extend the application's functionality. */\n recommends?: DeployPackageRelationOptions | undefined;\n /** Suggested companion packages. */\n suggests?: DeployPackageRelationOptions | undefined;\n /** Package names or capabilities supplied by this package. */\n provides?: DeployPackageRelationOptions | undefined;\n /** Packages that cannot be installed alongside this package. */\n conflicts?: DeployPackageRelationOptions | undefined;\n /** Packages whose files this package may replace. */\n replaces?: DeployPackageRelationOptions | undefined;\n /** Debian packages made incompatible by installing this package. Debian packages only. */\n breaks?: DeployDebPackageRelationOptions | undefined;\n /** Debian dependencies required before unpacking this package. Debian packages only. */\n preDepends?: DeployDebPackageRelationOptions | undefined;\n};\n\nconst extraRelationsSchema = z.strictObject({\n recommends: relationsSchema.optional(),\n suggests: relationsSchema.optional(),\n provides: relationsSchema.optional(),\n conflicts: relationsSchema.optional(),\n replaces: relationsSchema.optional(),\n breaks: debRelationsSchema.optional(),\n preDepends: debRelationsSchema.optional(),\n}) satisfies z.ZodType<DeployRelationsOptions>;\n\n/** The `deploy` options: application metadata, bundled runtime settings, and packaging options for `gtkx deploy`. */\ntype DeployOptions = {\n /** Package formats to build. Defaults to `[\"flatpak\"]`; overridden by `gtkx deploy --target`. */\n targets?: (\"appimage\" | \"deb\" | \"flatpak\" | \"rpm\")[] | undefined;\n /** Target CPU architectures. Defaults to the host architecture; overridden by `gtkx deploy --arch`. */\n architectures?: (\"arm64\" | \"x64\")[] | undefined;\n /** Deployment directory relative to the project root. Defaults to `build`, with packages in its `out` directory. */\n outDir?: string | undefined;\n /** Display name, derived from package.json's name or the application ID when omitted. */\n name?: string | undefined;\n /** Generic application description shown by desktop launchers, such as `Text Editor`. */\n genericName?: string | undefined;\n /** Launcher command name, derived from package.json's name or the application ID when omitted. */\n binaryName?: string | undefined;\n /** Application version. Defaults to the version in package.json. */\n version?: string | undefined;\n /** Debian packaging revision and RPM release. Defaults to `1`. */\n release?: string | undefined;\n /** Non-negative Debian and RPM version epoch, omitted from package metadata unless configured. */\n epoch?: number | undefined;\n /** Single-line summary without a trailing period. Defaults to the first line of package.json's description. */\n summary?: string | undefined;\n /** Long description as paragraphs. Defaults to the summary when omitted or empty. */\n description?: string[] | undefined;\n /** Search keywords included in the desktop entry and AppStream metadata. */\n keywords?: string[] | undefined;\n /** Freedesktop application categories used by launchers, software centers, and package metadata. */\n categories?: string[] | undefined;\n /** Supported MIME types, combined with types from file associations and URL protocols. */\n mimeTypes?: string[] | undefined;\n /** Developer identity and package maintainer details. */\n developer?: DeployDeveloperOptions | undefined;\n /** Application license as an SPDX expression. Defaults to the license in package.json. */\n license?: string | undefined;\n /** License file path relative to the project root, detected from common LICENSE or COPYING names when omitted. */\n licenseFile?: string | undefined;\n /** SPDX license expression for the AppStream metadata. Defaults to `CC0-1.0`. */\n metadataLicense?: string | undefined;\n /** Copyright notice. Defaults to the build year and developer name. */\n copyright?: string | undefined;\n /** Application homepage URL. Defaults to the homepage in package.json. */\n homepage?: string | undefined;\n /** Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`. */\n urls?:\n | Partial<\n Record<\n \"bugtracker\" | \"contact\" | \"contribute\" | \"donation\" | \"faq\" | \"help\" | \"translate\" | \"vcs-browser\",\n string\n >\n >\n | undefined;\n /** Screenshots for software centers. Each entry requires a `url` or `file`. */\n screenshots?: DeployScreenshotOptions[] | undefined;\n /** Base URL for screenshot files, inferred from a GitHub or GitLab remote when omitted. */\n screenshotBaseUrl?: string | undefined;\n /** Primary branding colors included in AppStream metadata. */\n branding?: DeployBrandingOptions | undefined;\n /** OARS 1.1 content-rating attributes mapped to their intensities. */\n contentRating?: Record<string, \"intense\" | \"mild\" | \"moderate\" | \"none\"> | undefined;\n /** AppStream release history, sorted newest first. Defaults to the application version and build date. */\n releases?: DeployReleaseOptions[] | undefined;\n /** Application arguments included in the desktop entry's launch command. */\n execArgs?: string[] | undefined;\n /** Environment variables exported by the generated launcher. Keys must be POSIX environment names. */\n launcherEnv?: Record<string, string> | undefined;\n /** Node.js flags placed before the application bundle in the generated launcher. */\n nodeFlags?: string[] | undefined;\n /** File extensions and MIME types registered for the application. */\n fileAssociations?: DeployFileAssociationOptions[] | undefined;\n /** URL schemes handled by the application, registered as `x-scheme-handler` MIME types. */\n protocols?: string[] | undefined;\n /**\n * Desktop launcher actions keyed by action ID. With `isDbusActivatable`, the application must register an\n * `app.<id>` action for each one.\n */\n desktopActions?: Record<string, DeployDesktopActionOptions> | undefined;\n /**\n * Additional desktop entry keys, overriding non-reserved generated values.\n * `DBusActivatable` and `Version` are rejected; use `deploy.isDbusActivatable` for D-Bus activation.\n */\n desktopEntry?: Record<string, string> | undefined;\n /** Additional XML fragments appended to the AppStream component. */\n metainfoExtra?: string[] | undefined;\n /** Enable D-Bus activation in the desktop entry and generate a session bus service file. Defaults to `false`. */\n isDbusActivatable?: boolean | undefined;\n /**\n * Extra files keyed by destination inside the install prefix, without a leading slash or a `..` segment.\n * Each value is a source path relative to the project root, or a {@link DeployExtraFileOptions} entry that\n * also sets the file mode. A directory source installs every file below it at the same path below the\n * destination; without a mode, each file is executable when its source is. Scripts installed this way, such\n * as a helper command's launcher, can run the bundled Node.js runtime at `lib/<binaryName>/node` in every\n * prebuilt target and in source Flatpaks.\n */\n extraFiles?: Record<string, string | DeployExtraFileOptions> | undefined;\n /** Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies. */\n minimumLibraryVersions?: Record<string, string> | undefined;\n /** Additional Debian and RPM dependencies merged with automatically detected dependencies. */\n depends?: DeployPackageRelationOptions | undefined;\n /** Additional package relationships for Debian and RPM. */\n relations?: DeployRelationsOptions | undefined;\n /** Installation and removal scripts for Debian and RPM packages. */\n scripts?: DeployScriptsOptions | undefined;\n /** Node.js runtime bundled with prebuilt packages and launcher compile-cache settings. */\n node?: DeployNodeOptions | undefined;\n /** Overrides for executables used to build packages. */\n tools?: DeployToolsOptions | undefined;\n /** Per-format package signing options. */\n signing?: DeploySigningOptions | undefined;\n /** AppImage packaging options. */\n appimage?: DeployAppImageOptions | undefined;\n /** Debian package metadata and compression options. */\n deb?: DeployDebOptions | undefined;\n /** Flatpak runtime, sandbox, build, and distribution options. */\n flatpak?: DeployFlatpakOptions | undefined;\n /** RPM package metadata and compression options. */\n rpm?: DeployRpmOptions | undefined;\n};\n\nconst deploySchema = z.strictObject({\n targets: z\n .array(z.enum(DEPLOY_TARGET_NAMES, { error: \"must be one of appimage, deb, flatpak, rpm\" }), {\n error: \"must be an array of deploy targets\",\n })\n .optional(),\n architectures: z\n .array(z.enum(DEPLOY_ARCH_NAMES, { error: \"must be one of arm64, x64\" }), {\n error: \"must be an array of deploy architectures\",\n })\n .optional(),\n outDir: text(\"must be a directory path relative to the project root\").optional(),\n name: text(\"must be the display name shown in the launcher\").optional(),\n genericName: text(\"must be a generic application name\").optional(),\n binaryName: text(\"must be a kebab-case command name\").optional(),\n version: text(VERSION_ERROR).optional(),\n release: text(\"must be a packaging revision\").optional(),\n epoch: z.int({ error: EPOCH_ERROR }).min(0, { error: EPOCH_ERROR }).optional(),\n summary: text(\"must be a single-line summary without a trailing period\").optional(),\n description: textList(\"description paragraph\", \"must be an array of description paragraphs\").optional(),\n keywords: textList(\"search keyword\", \"must be an array of search keywords\").optional(),\n categories: textList(\"freedesktop category\", \"must be an array of freedesktop categories\").optional(),\n mimeTypes: textList(\"MIME type\", \"must be an array of MIME types\").optional(),\n developer: developerSchema.optional(),\n license: text(SPDX_ERROR).optional(),\n licenseFile: text(\"must be a path to a license file\").optional(),\n metadataLicense: text(SPDX_ERROR).optional(),\n copyright: text(\"must be a copyright line\").optional(),\n homepage: url(URL_ERROR).optional(),\n urls: z\n .partialRecord(z.enum(URL_KINDS), url(URL_ERROR), {\n error: \"must be a record of AppStream url kinds to URLs\",\n })\n .optional(),\n screenshots: z.array(screenshotSchema, { error: \"must be an array of screenshots\" }).optional(),\n screenshotBaseUrl: url(\"must be an absolute base URL\").optional(),\n branding: brandingSchema.optional(),\n contentRating: z\n .record(z.string(), z.enum(OARS_INTENSITIES, { error: \"must be one of intense, mild, moderate, none\" }), {\n error: \"must be a record of OARS 1.1 attribute ids to intensities\",\n })\n .optional(),\n releases: z.array(releaseSchema, { error: \"must be an array of releases\" }).optional(),\n execArgs: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n launcherEnv: launcherEnvSchema.optional(),\n nodeFlags: nodeFlagsSchema.optional(),\n fileAssociations: z.array(fileAssociationSchema, { error: \"must be an array of file associations\" }).optional(),\n protocols: textList(\"URL scheme\", \"must be an array of URL schemes\").optional(),\n desktopActions: z\n .record(z.string(), desktopActionSchema, { error: \"must be a record of action ids to actions\" })\n .optional(),\n desktopEntry: textRecord(\n \"must be a desktop entry value\",\n \"must be a record of desktop entry keys to values\",\n ).optional(),\n metainfoExtra: textList(\"AppStream XML fragment\", \"must be an array of AppStream XML fragments\").optional(),\n isDbusActivatable: flag(BOOLEAN_ERROR).optional(),\n extraFiles: relativePathRecord(\n \"must be a destination path inside the install prefix, without a leading slash or a .. segment\",\n extraFileEntrySchema,\n \"must be a record of prefix-relative destinations to source paths or { source, mode } entries\",\n ).optional(),\n minimumLibraryVersions: minimumLibraryVersionsSchema.optional(),\n depends: relationsSchema.optional(),\n relations: extraRelationsSchema.optional(),\n scripts: scriptsSchema.optional(),\n node: nodeRuntimeSchema.optional(),\n tools: toolsSchema.optional(),\n signing: signingSchema.optional(),\n appimage: appimageSchema.optional(),\n deb: debSchema.optional(),\n flatpak: flatpakSchema.optional(),\n rpm: rpmSchema.optional(),\n}) satisfies z.ZodType<DeployOptions>;\n\nexport {\n deploySchema,\n type DeployAppImageOptions,\n type DeployAppImageSigningOptions,\n type DeployBrandingOptions,\n type DeployDebOptions,\n type DeployDebPackageRelationOptions,\n type DeployDebSigningOptions,\n type DeployDesktopActionOptions,\n type DeployDeveloperOptions,\n type DeployExtraFileOptions,\n type DeployFileAssociationOptions,\n type DeployFlatpakOptions,\n type DeployFlatpakSigningOptions,\n type DeployFlatpakSourceOptions,\n type DeployNodeOptions,\n type DeployOptions,\n type DeployPackageRelationOptions,\n type DeployRelationsOptions,\n type DeployReleaseOptions,\n type DeployRpmOptions,\n type DeployRpmSigningOptions,\n type DeployScreenshotOptions,\n type DeployScriptsOptions,\n type DeploySigningOptions,\n type DeployToolsOptions,\n};\n"]}