@todesktop/shared 7.195.0 → 7.196.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @todesktop/shared
2
2
 
3
+ ## 7.196.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3d6da7a: Add support for `app.useTdCert` flag to use ToDesktop code signing
8
+ certificates for Mac and Windows builds
9
+
10
+ ## 7.196.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 3ae0eaf: Add support for Electron Fuses configuration
15
+ - 6e11f24: Add Bun package manager support
16
+
3
17
  ## 7.195.0
4
18
 
5
19
  ### Minor Changes
package/lib/cjs/base.d.ts CHANGED
@@ -60,6 +60,7 @@ export interface IAppMeta {
60
60
  shouldCodeSign?: boolean;
61
61
  shouldRelease?: boolean;
62
62
  shouldSendCompletionEmail?: boolean;
63
+ source?: 'security-update';
63
64
  sourceArchiveDetails?: {
64
65
  bucket: string;
65
66
  hash?: string;
@@ -102,6 +103,24 @@ export interface IAppMeta {
102
103
  tempHSMCertName: string;
103
104
  };
104
105
  }
106
+ export interface ElectronFuses {
107
+ /** Controls whether the cookie store on disk is encrypted using OS-level cryptography. Default: false (disabled). */
108
+ enableCookieEncryption?: boolean;
109
+ /** Controls whether Electron validates the integrity of the app.asar file. Default: false (disabled). */
110
+ enableEmbeddedAsarIntegrityValidation?: boolean;
111
+ /** Controls whether command line arguments like --inspect are respected. Default: true (enabled). */
112
+ enableNodeCliInspectArguments?: boolean;
113
+ /** Controls whether the NODE_OPTIONS environment variable is respected. Default: true (enabled). */
114
+ enableNodeOptionsEnvironmentVariable?: boolean;
115
+ /** Controls whether pages loaded via file:// protocol get extra privileges. Requires Electron 29+. Default: true (enabled). */
116
+ grantFileProtocolExtraPrivileges?: boolean;
117
+ /** Controls whether the browser process uses a V8 snapshot file. Default: false (disabled). */
118
+ loadBrowserProcessSpecificV8Snapshot?: boolean;
119
+ /** Controls whether Electron only loads the app from an asar archive. Default: false (disabled). */
120
+ onlyLoadAppFromAsar?: boolean;
121
+ /** Controls whether the ELECTRON_RUN_AS_NODE environment variable is respected. Default: true (enabled). */
122
+ runAsNode?: boolean;
123
+ }
105
124
  export interface ToDesktopJson {
106
125
  appBuilderLibVersion?: string;
107
126
  appFiles?: string[];
@@ -112,6 +131,7 @@ export interface ToDesktopJson {
112
131
  asarUnpack?: boolean | string[];
113
132
  bucket?: string;
114
133
  buildVersion?: string;
134
+ bunVersion?: string;
115
135
  bytenode?: {
116
136
  enabled?: boolean;
117
137
  files?: string[];
@@ -133,6 +153,7 @@ export interface ToDesktopJson {
133
153
  extraResources?: ExtraFileReference[];
134
154
  fileAssociations?: IAppBuilderLib['config']['fileAssociations'];
135
155
  filesForDistribution?: string[];
156
+ fuses?: ElectronFuses;
136
157
  icon: FilePath;
137
158
  id: string;
138
159
  includeSubNodeModules?: boolean;
@@ -163,7 +184,7 @@ export interface ToDesktopJson {
163
184
  };
164
185
  nodeVersion?: string;
165
186
  npmVersion?: string;
166
- packageManager?: 'npm' | 'pnpm' | 'yarn';
187
+ packageManager?: 'bun' | 'npm' | 'pnpm' | 'yarn';
167
188
  pnpmVersion?: string;
168
189
  productName?: string;
169
190
  rebuildLibrary?: '@electron/rebuild' | 'app-builder';
@@ -274,6 +295,9 @@ export interface BaseApp extends Schemable {
274
295
  customMacCodeSign?: CustomMacCodeSign;
275
296
  customNotarization?: CustomMacNotarization;
276
297
  customWindowsCodeSign?: CustomWindowsCodeSignAzureTrustedSigning | CustomWindowsCodeSignEV | CustomWindowsCodeSignFile;
298
+ debConfig?: {
299
+ installAptSources?: boolean;
300
+ };
277
301
  domainVerificationCode?: string;
278
302
  id: string;
279
303
  macHsmCertNames?: Record<MacTarget, string>;
@@ -313,6 +337,7 @@ export interface BaseApp extends Schemable {
313
337
  login?: string;
314
338
  };
315
339
  subscription?: Subscription;
340
+ useTdCert?: boolean;
316
341
  windowsHsmCertNames?: Record<WindowsTarget, string>;
317
342
  }
318
343
  export type Subscription = {
@@ -20,6 +20,7 @@ export type FilePath = string;
20
20
  export type SemanticVersion = string;
21
21
  export type URL = string;
22
22
  export declare enum PackageManager {
23
+ bun = "bun",
23
24
  npm = "npm",
24
25
  pnpm = "pnpm",
25
26
  yarn = "yarn"
@@ -9,6 +9,7 @@ var PlatformName;
9
9
  })(PlatformName || (exports.PlatformName = PlatformName = {}));
10
10
  var PackageManager;
11
11
  (function (PackageManager) {
12
+ PackageManager["bun"] = "bun";
12
13
  PackageManager["npm"] = "npm";
13
14
  PackageManager["pnpm"] = "pnpm";
14
15
  PackageManager["yarn"] = "yarn";
package/lib/esm/base.d.ts CHANGED
@@ -60,6 +60,7 @@ export interface IAppMeta {
60
60
  shouldCodeSign?: boolean;
61
61
  shouldRelease?: boolean;
62
62
  shouldSendCompletionEmail?: boolean;
63
+ source?: 'security-update';
63
64
  sourceArchiveDetails?: {
64
65
  bucket: string;
65
66
  hash?: string;
@@ -102,6 +103,24 @@ export interface IAppMeta {
102
103
  tempHSMCertName: string;
103
104
  };
104
105
  }
106
+ export interface ElectronFuses {
107
+ /** Controls whether the cookie store on disk is encrypted using OS-level cryptography. Default: false (disabled). */
108
+ enableCookieEncryption?: boolean;
109
+ /** Controls whether Electron validates the integrity of the app.asar file. Default: false (disabled). */
110
+ enableEmbeddedAsarIntegrityValidation?: boolean;
111
+ /** Controls whether command line arguments like --inspect are respected. Default: true (enabled). */
112
+ enableNodeCliInspectArguments?: boolean;
113
+ /** Controls whether the NODE_OPTIONS environment variable is respected. Default: true (enabled). */
114
+ enableNodeOptionsEnvironmentVariable?: boolean;
115
+ /** Controls whether pages loaded via file:// protocol get extra privileges. Requires Electron 29+. Default: true (enabled). */
116
+ grantFileProtocolExtraPrivileges?: boolean;
117
+ /** Controls whether the browser process uses a V8 snapshot file. Default: false (disabled). */
118
+ loadBrowserProcessSpecificV8Snapshot?: boolean;
119
+ /** Controls whether Electron only loads the app from an asar archive. Default: false (disabled). */
120
+ onlyLoadAppFromAsar?: boolean;
121
+ /** Controls whether the ELECTRON_RUN_AS_NODE environment variable is respected. Default: true (enabled). */
122
+ runAsNode?: boolean;
123
+ }
105
124
  export interface ToDesktopJson {
106
125
  appBuilderLibVersion?: string;
107
126
  appFiles?: string[];
@@ -112,6 +131,7 @@ export interface ToDesktopJson {
112
131
  asarUnpack?: boolean | string[];
113
132
  bucket?: string;
114
133
  buildVersion?: string;
134
+ bunVersion?: string;
115
135
  bytenode?: {
116
136
  enabled?: boolean;
117
137
  files?: string[];
@@ -133,6 +153,7 @@ export interface ToDesktopJson {
133
153
  extraResources?: ExtraFileReference[];
134
154
  fileAssociations?: IAppBuilderLib['config']['fileAssociations'];
135
155
  filesForDistribution?: string[];
156
+ fuses?: ElectronFuses;
136
157
  icon: FilePath;
137
158
  id: string;
138
159
  includeSubNodeModules?: boolean;
@@ -163,7 +184,7 @@ export interface ToDesktopJson {
163
184
  };
164
185
  nodeVersion?: string;
165
186
  npmVersion?: string;
166
- packageManager?: 'npm' | 'pnpm' | 'yarn';
187
+ packageManager?: 'bun' | 'npm' | 'pnpm' | 'yarn';
167
188
  pnpmVersion?: string;
168
189
  productName?: string;
169
190
  rebuildLibrary?: '@electron/rebuild' | 'app-builder';
@@ -274,6 +295,9 @@ export interface BaseApp extends Schemable {
274
295
  customMacCodeSign?: CustomMacCodeSign;
275
296
  customNotarization?: CustomMacNotarization;
276
297
  customWindowsCodeSign?: CustomWindowsCodeSignAzureTrustedSigning | CustomWindowsCodeSignEV | CustomWindowsCodeSignFile;
298
+ debConfig?: {
299
+ installAptSources?: boolean;
300
+ };
277
301
  domainVerificationCode?: string;
278
302
  id: string;
279
303
  macHsmCertNames?: Record<MacTarget, string>;
@@ -313,6 +337,7 @@ export interface BaseApp extends Schemable {
313
337
  login?: string;
314
338
  };
315
339
  subscription?: Subscription;
340
+ useTdCert?: boolean;
316
341
  windowsHsmCertNames?: Record<WindowsTarget, string>;
317
342
  }
318
343
  export type Subscription = {
@@ -20,6 +20,7 @@ export type FilePath = string;
20
20
  export type SemanticVersion = string;
21
21
  export type URL = string;
22
22
  export declare enum PackageManager {
23
+ bun = "bun",
23
24
  npm = "npm",
24
25
  pnpm = "pnpm",
25
26
  yarn = "yarn"
@@ -6,6 +6,7 @@ export var PlatformName;
6
6
  })(PlatformName || (PlatformName = {}));
7
7
  export var PackageManager;
8
8
  (function (PackageManager) {
9
+ PackageManager["bun"] = "bun";
9
10
  PackageManager["npm"] = "npm";
10
11
  PackageManager["pnpm"] = "pnpm";
11
12
  PackageManager["yarn"] = "yarn";
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.195.0",
3
+ "version": "7.196.1",
4
4
  "description": "",
5
+ "sideEffects": false,
5
6
  "main": "./lib/cjs/index.js",
6
7
  "module": "./lib/esm/index.js",
7
8
  "types": "./lib/esm/index.d.ts",
package/src/base.ts CHANGED
@@ -74,6 +74,7 @@ export interface IAppMeta {
74
74
  shouldCodeSign?: boolean;
75
75
  shouldRelease?: boolean;
76
76
  shouldSendCompletionEmail?: boolean;
77
+ source?: 'security-update';
77
78
  sourceArchiveDetails?: {
78
79
  bucket: string;
79
80
  hash?: string;
@@ -117,6 +118,25 @@ export interface IAppMeta {
117
118
  };
118
119
  }
119
120
 
121
+ export interface ElectronFuses {
122
+ /** Controls whether the cookie store on disk is encrypted using OS-level cryptography. Default: false (disabled). */
123
+ enableCookieEncryption?: boolean;
124
+ /** Controls whether Electron validates the integrity of the app.asar file. Default: false (disabled). */
125
+ enableEmbeddedAsarIntegrityValidation?: boolean;
126
+ /** Controls whether command line arguments like --inspect are respected. Default: true (enabled). */
127
+ enableNodeCliInspectArguments?: boolean;
128
+ /** Controls whether the NODE_OPTIONS environment variable is respected. Default: true (enabled). */
129
+ enableNodeOptionsEnvironmentVariable?: boolean;
130
+ /** Controls whether pages loaded via file:// protocol get extra privileges. Requires Electron 29+. Default: true (enabled). */
131
+ grantFileProtocolExtraPrivileges?: boolean;
132
+ /** Controls whether the browser process uses a V8 snapshot file. Default: false (disabled). */
133
+ loadBrowserProcessSpecificV8Snapshot?: boolean;
134
+ /** Controls whether Electron only loads the app from an asar archive. Default: false (disabled). */
135
+ onlyLoadAppFromAsar?: boolean;
136
+ /** Controls whether the ELECTRON_RUN_AS_NODE environment variable is respected. Default: true (enabled). */
137
+ runAsNode?: boolean;
138
+ }
139
+
120
140
  export interface ToDesktopJson {
121
141
  appBuilderLibVersion?: string;
122
142
  appFiles?: string[];
@@ -127,6 +147,7 @@ export interface ToDesktopJson {
127
147
  asarUnpack?: boolean | string[];
128
148
  bucket?: string;
129
149
  buildVersion?: string;
150
+ bunVersion?: string;
130
151
  bytenode?: {
131
152
  enabled?: boolean;
132
153
  files?: string[];
@@ -148,6 +169,7 @@ export interface ToDesktopJson {
148
169
  extraResources?: ExtraFileReference[];
149
170
  fileAssociations?: IAppBuilderLib['config']['fileAssociations'];
150
171
  filesForDistribution?: string[];
172
+ fuses?: ElectronFuses;
151
173
  icon: FilePath;
152
174
  id: string;
153
175
  includeSubNodeModules?: boolean;
@@ -178,7 +200,7 @@ export interface ToDesktopJson {
178
200
  };
179
201
  nodeVersion?: string;
180
202
  npmVersion?: string;
181
- packageManager?: 'npm' | 'pnpm' | 'yarn';
203
+ packageManager?: 'bun' | 'npm' | 'pnpm' | 'yarn';
182
204
  pnpmVersion?: string;
183
205
  productName?: string;
184
206
  rebuildLibrary?: '@electron/rebuild' | 'app-builder';
@@ -315,6 +337,9 @@ export interface BaseApp extends Schemable {
315
337
  | CustomWindowsCodeSignAzureTrustedSigning
316
338
  | CustomWindowsCodeSignEV
317
339
  | CustomWindowsCodeSignFile;
340
+ debConfig?: {
341
+ installAptSources?: boolean;
342
+ };
318
343
  domainVerificationCode?: string;
319
344
  id: string;
320
345
 
@@ -352,6 +377,7 @@ export interface BaseApp extends Schemable {
352
377
  shouldCreateSnapFiles?: boolean;
353
378
  snapStore?: { description?: string; login?: string };
354
379
  subscription?: Subscription;
380
+ useTdCert?: boolean;
355
381
  windowsHsmCertNames?: Record<WindowsTarget, string>;
356
382
  }
357
383
 
package/src/desktopify.ts CHANGED
@@ -35,6 +35,7 @@ export type SemanticVersion = string; // TODO: define more
35
35
  export type URL = string; // TODO: define more
36
36
 
37
37
  export enum PackageManager {
38
+ bun = 'bun',
38
39
  npm = 'npm',
39
40
  pnpm = 'pnpm',
40
41
  yarn = 'yarn',