@todesktop/shared 7.104.0 → 7.107.0
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/lib/base.d.ts +14 -0
- package/lib/desktopify.d.ts +2 -0
- package/lib/desktopify2.d.ts +2 -2
- package/lib/plugin.d.ts +26 -0
- package/lib/plugin.js +2 -0
- package/lib/toDesktop.d.ts +0 -14
- package/package.json +1 -1
- package/src/base.ts +14 -0
- package/src/desktopify.ts +3 -0
- package/src/desktopify2.ts +2 -2
- package/src/plugin.ts +34 -0
- package/src/toDesktop.ts +0 -14
package/lib/base.d.ts
CHANGED
|
@@ -136,4 +136,18 @@ export interface BaseApp extends Schemable {
|
|
|
136
136
|
itemId: string;
|
|
137
137
|
planId: string;
|
|
138
138
|
};
|
|
139
|
+
shouldCreate32BitWindowsArtifacts?: boolean;
|
|
140
|
+
shouldCreateArm64WindowsArtifacts?: boolean;
|
|
141
|
+
shouldCreateAppXFiles?: boolean;
|
|
142
|
+
shouldCreateAppImages?: boolean;
|
|
143
|
+
shouldCreateDebianPackages?: boolean;
|
|
144
|
+
shouldCreateDMGs?: boolean;
|
|
145
|
+
shouldCreateAppleSiliconAssets?: boolean;
|
|
146
|
+
shouldCreateMacZipInstallers?: boolean;
|
|
147
|
+
shouldCreateMSIInstallers?: boolean;
|
|
148
|
+
shouldCreateNSISInstallers?: boolean;
|
|
149
|
+
shouldCreateNSISWebInstaller?: boolean;
|
|
150
|
+
shouldCreateRPMPackages?: boolean;
|
|
151
|
+
shouldCreateSnapFiles?: boolean;
|
|
152
|
+
shouldCreateMacUniversalInstaller?: boolean;
|
|
139
153
|
}
|
package/lib/desktopify.d.ts
CHANGED
|
@@ -66,12 +66,14 @@ export interface PlatformBuild {
|
|
|
66
66
|
startedAt: ISODate;
|
|
67
67
|
status: BuildStatus;
|
|
68
68
|
}
|
|
69
|
+
export declare type CIRunner = "circle" | "azure";
|
|
69
70
|
export interface Build {
|
|
70
71
|
appCustomDomain?: string;
|
|
71
72
|
appName: string;
|
|
72
73
|
appNotarizaionBundleId: string;
|
|
73
74
|
appVersion?: SemanticVersion;
|
|
74
75
|
buildServerExecutionId?: number;
|
|
76
|
+
ciRunner?: CIRunner;
|
|
75
77
|
cliConfigSchemaVersion: number;
|
|
76
78
|
continuousIntegrationServiceName?: string;
|
|
77
79
|
commitId?: string;
|
package/lib/desktopify2.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { ISwitchableValue } from "./toDesktop";
|
|
3
3
|
import { MenuItemConstructorOptions, BrowserWindowConstructorOptions, WebPreferences } from "@todesktop/client-electron-types";
|
|
4
4
|
import { BaseApp } from "./base";
|
|
5
|
+
import { DesktopAppPlugin } from "./plugin";
|
|
5
6
|
/**
|
|
6
7
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
7
8
|
*/
|
|
@@ -270,9 +271,8 @@ export interface DesktopifyApp2 {
|
|
|
270
271
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
271
272
|
/**
|
|
272
273
|
* An array of plugin modules. Can work with semver specificity
|
|
273
|
-
* e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
|
|
274
274
|
*/
|
|
275
|
-
plugins?: string[];
|
|
275
|
+
plugins?: (DesktopAppPlugin | string)[];
|
|
276
276
|
/**
|
|
277
277
|
* The app's windows
|
|
278
278
|
*/
|
package/lib/plugin.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface DesktopAppPlugin {
|
|
2
|
+
package: string;
|
|
3
|
+
preferences?: {
|
|
4
|
+
[id: string]: NumberSpec | TextSpec;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare type TextSpec = PreferenceSpec<"text", {
|
|
8
|
+
minLength?: number;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
pattern?: RegExp;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare type NumberSpec = PreferenceSpec<"number", {
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
defaultValue?: number;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
}>;
|
|
20
|
+
interface PreferenceSpec<T, V> {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
type: T;
|
|
24
|
+
value: V;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/lib/plugin.js
ADDED
package/lib/toDesktop.d.ts
CHANGED
|
@@ -146,20 +146,6 @@ export interface IApp extends BaseApp {
|
|
|
146
146
|
nsisConfig?: Partial<IAppBuilderLib["config"]["nsis"]>;
|
|
147
147
|
runtimeEnvs?: string;
|
|
148
148
|
secret?: string;
|
|
149
|
-
shouldCreate32BitWindowsArtifacts?: boolean;
|
|
150
|
-
shouldCreateArm64WindowsArtifacts?: boolean;
|
|
151
|
-
shouldCreateAppXFiles?: boolean;
|
|
152
|
-
shouldCreateAppImages?: boolean;
|
|
153
|
-
shouldCreateDebianPackages?: boolean;
|
|
154
|
-
shouldCreateDMGs?: boolean;
|
|
155
|
-
shouldCreateAppleSiliconAssets?: boolean;
|
|
156
|
-
shouldCreateMacZipInstallers?: boolean;
|
|
157
|
-
shouldCreateMSIInstallers?: boolean;
|
|
158
|
-
shouldCreateNSISInstallers?: boolean;
|
|
159
|
-
shouldCreateNSISWebInstaller?: boolean;
|
|
160
|
-
shouldCreateRPMPackages?: boolean;
|
|
161
|
-
shouldCreateSnapFiles?: boolean;
|
|
162
|
-
shouldCreateMacUniversalInstaller?: boolean;
|
|
163
149
|
shouldLaunchAtStartupByDefault?: boolean;
|
|
164
150
|
shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
|
|
165
151
|
shouldReuseRendererProcess?: boolean;
|
package/package.json
CHANGED
package/src/base.ts
CHANGED
|
@@ -144,4 +144,18 @@ export interface BaseApp extends Schemable {
|
|
|
144
144
|
itemId: string;
|
|
145
145
|
planId: string;
|
|
146
146
|
};
|
|
147
|
+
shouldCreate32BitWindowsArtifacts?: boolean;
|
|
148
|
+
shouldCreateArm64WindowsArtifacts?: boolean;
|
|
149
|
+
shouldCreateAppXFiles?: boolean;
|
|
150
|
+
shouldCreateAppImages?: boolean;
|
|
151
|
+
shouldCreateDebianPackages?: boolean;
|
|
152
|
+
shouldCreateDMGs?: boolean;
|
|
153
|
+
shouldCreateAppleSiliconAssets?: boolean;
|
|
154
|
+
shouldCreateMacZipInstallers?: boolean;
|
|
155
|
+
shouldCreateMSIInstallers?: boolean;
|
|
156
|
+
shouldCreateNSISInstallers?: boolean;
|
|
157
|
+
shouldCreateNSISWebInstaller?: boolean;
|
|
158
|
+
shouldCreateRPMPackages?: boolean;
|
|
159
|
+
shouldCreateSnapFiles?: boolean;
|
|
160
|
+
shouldCreateMacUniversalInstaller?: boolean;
|
|
147
161
|
}
|
package/src/desktopify.ts
CHANGED
|
@@ -98,12 +98,15 @@ export interface PlatformBuild {
|
|
|
98
98
|
status: BuildStatus;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
export type CIRunner = "circle" | "azure";
|
|
102
|
+
|
|
101
103
|
export interface Build {
|
|
102
104
|
appCustomDomain?: string;
|
|
103
105
|
appName: string;
|
|
104
106
|
appNotarizaionBundleId: string;
|
|
105
107
|
appVersion?: SemanticVersion;
|
|
106
108
|
buildServerExecutionId?: number;
|
|
109
|
+
ciRunner?: CIRunner;
|
|
107
110
|
cliConfigSchemaVersion: number;
|
|
108
111
|
continuousIntegrationServiceName?: string;
|
|
109
112
|
commitId?: string;
|
package/src/desktopify2.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
WebPreferences,
|
|
6
6
|
} from "@todesktop/client-electron-types";
|
|
7
7
|
import { BaseApp, Schemable } from "./base";
|
|
8
|
+
import { DesktopAppPlugin } from "./plugin";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
@@ -383,9 +384,8 @@ export interface DesktopifyApp2 {
|
|
|
383
384
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
384
385
|
/**
|
|
385
386
|
* An array of plugin modules. Can work with semver specificity
|
|
386
|
-
* e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
|
|
387
387
|
*/
|
|
388
|
-
plugins?: string[];
|
|
388
|
+
plugins?: (DesktopAppPlugin | string)[];
|
|
389
389
|
/**
|
|
390
390
|
* The app's windows
|
|
391
391
|
*/
|
package/src/plugin.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DesktopAppPlugin {
|
|
2
|
+
package: string; // e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
|
|
3
|
+
preferences?: {
|
|
4
|
+
[id: string]: NumberSpec | TextSpec;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type TextSpec = PreferenceSpec<
|
|
9
|
+
"text",
|
|
10
|
+
{
|
|
11
|
+
minLength?: number;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
pattern?: RegExp;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
}
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export type NumberSpec = PreferenceSpec<
|
|
20
|
+
"number",
|
|
21
|
+
{
|
|
22
|
+
min?: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
defaultValue?: number;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
}
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
interface PreferenceSpec<T, V> {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
type: T;
|
|
33
|
+
value: V;
|
|
34
|
+
}
|
package/src/toDesktop.ts
CHANGED
|
@@ -166,20 +166,6 @@ export interface IApp extends BaseApp {
|
|
|
166
166
|
nsisConfig?: Partial<IAppBuilderLib["config"]["nsis"]>;
|
|
167
167
|
runtimeEnvs?: string;
|
|
168
168
|
secret?: string; // support old schema versions
|
|
169
|
-
shouldCreate32BitWindowsArtifacts?: boolean;
|
|
170
|
-
shouldCreateArm64WindowsArtifacts?: boolean;
|
|
171
|
-
shouldCreateAppXFiles?: boolean;
|
|
172
|
-
shouldCreateAppImages?: boolean;
|
|
173
|
-
shouldCreateDebianPackages?: boolean;
|
|
174
|
-
shouldCreateDMGs?: boolean;
|
|
175
|
-
shouldCreateAppleSiliconAssets?: boolean;
|
|
176
|
-
shouldCreateMacZipInstallers?: boolean;
|
|
177
|
-
shouldCreateMSIInstallers?: boolean;
|
|
178
|
-
shouldCreateNSISInstallers?: boolean;
|
|
179
|
-
shouldCreateNSISWebInstaller?: boolean;
|
|
180
|
-
shouldCreateRPMPackages?: boolean;
|
|
181
|
-
shouldCreateSnapFiles?: boolean;
|
|
182
|
-
shouldCreateMacUniversalInstaller?: boolean;
|
|
183
169
|
shouldLaunchAtStartupByDefault?: boolean;
|
|
184
170
|
shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
|
|
185
171
|
shouldReuseRendererProcess?: boolean;
|