@todesktop/shared 7.157.0 → 7.158.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/desktopify.d.ts +12 -0
- package/package.json +1 -1
- package/src/desktopify.ts +16 -0
package/lib/desktopify.d.ts
CHANGED
|
@@ -93,6 +93,13 @@ export interface Build {
|
|
|
93
93
|
releasedAt?: ISODate;
|
|
94
94
|
shouldCodeSign: boolean;
|
|
95
95
|
shouldRelease: boolean;
|
|
96
|
+
smokeTest?: {
|
|
97
|
+
buildServerExecutionId?: string;
|
|
98
|
+
isCanceled?: boolean;
|
|
99
|
+
linux?: SmokeTestProgress;
|
|
100
|
+
mac?: SmokeTestProgress;
|
|
101
|
+
win?: SmokeTestProgress;
|
|
102
|
+
};
|
|
96
103
|
sourcePackageManager?: PackageManager;
|
|
97
104
|
standardUniversalDownloadUrl?: URL;
|
|
98
105
|
startedAt: ISODate;
|
|
@@ -136,6 +143,11 @@ export interface MacCustomManifest extends CustomManifest {
|
|
|
136
143
|
export interface WindowsCustomManifest extends CustomManifest {
|
|
137
144
|
artifacts: Record<WindowsArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
|
|
138
145
|
}
|
|
146
|
+
export interface SmokeTestProgress {
|
|
147
|
+
message?: string;
|
|
148
|
+
progress: number;
|
|
149
|
+
state: 'progress' | 'done' | 'error';
|
|
150
|
+
}
|
|
139
151
|
export declare const hasBuildKickedOff: (build: Build) => boolean;
|
|
140
152
|
export declare const isPlatformBuildRunning: (platformBuild: PlatformBuild) => boolean;
|
|
141
153
|
export declare const isCiBuildRunning: (build: Build) => boolean;
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -3,6 +3,9 @@ import {
|
|
|
3
3
|
Configuration,
|
|
4
4
|
PackagerOptions,
|
|
5
5
|
PublishOptions,
|
|
6
|
+
// app-builder-lib shouldn't be installed as a dependency for dependent
|
|
7
|
+
// packages since it's too large
|
|
8
|
+
// @ts-ignore
|
|
6
9
|
} from "app-builder-lib";
|
|
7
10
|
import {
|
|
8
11
|
MenuItemConstructorOptions,
|
|
@@ -130,6 +133,13 @@ export interface Build {
|
|
|
130
133
|
releasedAt?: ISODate;
|
|
131
134
|
shouldCodeSign: boolean;
|
|
132
135
|
shouldRelease: boolean;
|
|
136
|
+
smokeTest?: {
|
|
137
|
+
buildServerExecutionId?: string;
|
|
138
|
+
isCanceled?: boolean;
|
|
139
|
+
linux?: SmokeTestProgress;
|
|
140
|
+
mac?: SmokeTestProgress;
|
|
141
|
+
win?: SmokeTestProgress;
|
|
142
|
+
};
|
|
133
143
|
// sourceArchiveUrl: URL;
|
|
134
144
|
sourcePackageManager?: PackageManager;
|
|
135
145
|
standardUniversalDownloadUrl?: URL;
|
|
@@ -207,6 +217,12 @@ export interface WindowsCustomManifest extends CustomManifest {
|
|
|
207
217
|
>;
|
|
208
218
|
}
|
|
209
219
|
|
|
220
|
+
export interface SmokeTestProgress {
|
|
221
|
+
message?: string;
|
|
222
|
+
progress: number;
|
|
223
|
+
state: 'progress' | 'done' | 'error';
|
|
224
|
+
}
|
|
225
|
+
|
|
210
226
|
export const hasBuildKickedOff = (build: Build): boolean => {
|
|
211
227
|
if (!build) {
|
|
212
228
|
return false;
|