@todesktop/shared 7.157.0 → 7.159.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 +13 -0
- package/package.json +1 -1
- package/src/desktopify.ts +17 -0
package/lib/desktopify.d.ts
CHANGED
|
@@ -93,10 +93,18 @@ 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;
|
|
99
106
|
status: BuildStatus;
|
|
107
|
+
todesktopRuntimeVersionSpecified: SemanticVersion;
|
|
100
108
|
universalDownloadUrl?: URL;
|
|
101
109
|
url?: URL;
|
|
102
110
|
versionControlInfo?: {
|
|
@@ -136,6 +144,11 @@ export interface MacCustomManifest extends CustomManifest {
|
|
|
136
144
|
export interface WindowsCustomManifest extends CustomManifest {
|
|
137
145
|
artifacts: Record<WindowsArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
|
|
138
146
|
}
|
|
147
|
+
export interface SmokeTestProgress {
|
|
148
|
+
message?: string;
|
|
149
|
+
progress: number;
|
|
150
|
+
state: 'progress' | 'done' | 'error';
|
|
151
|
+
}
|
|
139
152
|
export declare const hasBuildKickedOff: (build: Build) => boolean;
|
|
140
153
|
export declare const isPlatformBuildRunning: (platformBuild: PlatformBuild) => boolean;
|
|
141
154
|
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,11 +133,19 @@ 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;
|
|
136
146
|
startedAt: ISODate;
|
|
137
147
|
status: BuildStatus;
|
|
148
|
+
todesktopRuntimeVersionSpecified: SemanticVersion;
|
|
138
149
|
// TODO: total progress percentage?
|
|
139
150
|
universalDownloadUrl?: URL;
|
|
140
151
|
url?: URL;
|
|
@@ -207,6 +218,12 @@ export interface WindowsCustomManifest extends CustomManifest {
|
|
|
207
218
|
>;
|
|
208
219
|
}
|
|
209
220
|
|
|
221
|
+
export interface SmokeTestProgress {
|
|
222
|
+
message?: string;
|
|
223
|
+
progress: number;
|
|
224
|
+
state: 'progress' | 'done' | 'error';
|
|
225
|
+
}
|
|
226
|
+
|
|
210
227
|
export const hasBuildKickedOff = (build: Build): boolean => {
|
|
211
228
|
if (!build) {
|
|
212
229
|
return false;
|