@todesktop/shared 7.188.5 → 7.188.7

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 CHANGED
@@ -171,11 +171,25 @@ export interface CustomWindowsCodeSignEV {
171
171
  hsmCertType: WindowsHSMCertType.ev;
172
172
  hsmCertName: string;
173
173
  }
174
- export interface CustomMacCodeSign {
174
+ export declare type CustomMacCodeSign = {
175
+ type: 'url';
175
176
  certName: string;
176
177
  certPassword: string;
177
178
  certUrl: string;
178
- }
179
+ } | {
180
+ type: 'hsm';
181
+ };
182
+ export declare type CustomMacNotarization = {
183
+ appleId: string;
184
+ appleIdPassword: string;
185
+ ascProvider?: string;
186
+ teamId?: string;
187
+ } | {
188
+ type: 'hsm';
189
+ appleId: string;
190
+ ascProvider?: string;
191
+ teamId?: string;
192
+ };
179
193
  export interface BaseApp extends Schemable {
180
194
  id: string;
181
195
  appModelId?: string;
@@ -106,6 +106,7 @@ export interface Build {
106
106
  linux?: PlatformBuild;
107
107
  mac?: PlatformBuild;
108
108
  onBuildFinishedWebhook?: string;
109
+ projectConfig?: string;
109
110
  releasedAt?: ISODate;
110
111
  shouldCodeSign: boolean;
111
112
  shouldRelease: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.5",
3
+ "version": "7.188.7",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -188,11 +188,31 @@ export interface CustomWindowsCodeSignEV {
188
188
  hsmCertName: string;
189
189
  }
190
190
 
191
- export interface CustomMacCodeSign {
192
- certName: string;
193
- certPassword: string;
194
- certUrl: string;
195
- }
191
+ export type CustomMacCodeSign =
192
+ | {
193
+ type: 'url';
194
+ certName: string;
195
+ certPassword: string;
196
+ certUrl: string;
197
+ }
198
+ | {
199
+ type: 'hsm';
200
+ };
201
+
202
+ export type CustomMacNotarization =
203
+ | {
204
+ appleId: string;
205
+ appleIdPassword: string;
206
+ ascProvider?: string;
207
+ teamId?: string;
208
+ }
209
+ | {
210
+ // password is stored on hsm
211
+ type: 'hsm';
212
+ appleId: string;
213
+ ascProvider?: string;
214
+ teamId?: string;
215
+ };
196
216
 
197
217
  export interface BaseApp extends Schemable {
198
218
  id: string;
package/src/desktopify.ts CHANGED
@@ -146,6 +146,7 @@ export interface Build {
146
146
  linux?: PlatformBuild;
147
147
  mac?: PlatformBuild;
148
148
  onBuildFinishedWebhook?: string;
149
+ projectConfig?: string; // Stringified version of todesktop.json
149
150
  releasedAt?: ISODate;
150
151
  shouldCodeSign: boolean;
151
152
  shouldRelease: boolean;