@gtkx/config 2.0.0-beta.12 → 2.0.0-beta.14
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/README.md +2 -2
- package/dist/builtin-elements.d.ts +13 -1
- package/dist/builtin-elements.d.ts.map +1 -1
- package/dist/builtin-elements.js +47 -10
- package/dist/builtin-elements.js.map +1 -1
- package/dist/config-source.d.ts +2 -2
- package/dist/config-source.d.ts.map +1 -1
- package/dist/config-source.js +10 -7
- package/dist/config-source.js.map +1 -1
- package/dist/config.d.ts +256 -57
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +27 -72
- package/dist/config.js.map +1 -1
- package/dist/deploy.d.ts +930 -55
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +6 -161
- package/dist/deploy.js.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/loader.d.ts +20 -4
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +51 -18
- package/dist/loader.js.map +1 -1
- package/dist/virtual.d.ts.map +1 -1
- package/dist/virtual.js +1 -0
- package/dist/virtual.js.map +1 -1
- package/dist/vite-plugin.d.ts +5 -0
- package/dist/vite-plugin.d.ts.map +1 -1
- package/dist/vite-plugin.js.map +1 -1
- package/package.json +5 -5
- package/src/builtin-elements.ts +49 -10
- package/src/config-source.ts +11 -7
- package/src/config.ts +289 -91
- package/src/deploy.ts +991 -199
- package/src/index.ts +39 -2
- package/src/internal.ts +1 -0
- package/src/loader.ts +96 -22
- package/src/virtual.ts +1 -0
- package/src/vite-plugin.ts +5 -0
package/dist/deploy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../src/de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,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GAC1B,CAAC"}
|
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
|
-
|
|
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
|
-
|
|
299
|
-
|
|
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, };
|