@todesktop/shared 7.147.0 → 7.149.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 CHANGED
@@ -91,6 +91,7 @@ export interface IAppMeta {
91
91
  snap?: IAppBuilderLib["config"]["snap"];
92
92
  windows?: {
93
93
  icon?: FilePath;
94
+ nsisInclude?: FilePath;
94
95
  };
95
96
  };
96
97
  shouldCodeSign?: boolean;
@@ -184,6 +184,15 @@ export interface DesktopifyAppWindow {
184
184
  */
185
185
  webPreferences?: Pick<WebPreferences, whitelistedWebPreferencesOptions>;
186
186
  };
187
+ /**
188
+ * The window should load a file instead of a URL.
189
+ * The file property (below) should also be set if the value is `true`.
190
+ */
191
+ shouldUseFileInsteadOfUrl?: boolean;
192
+ /**
193
+ * The path to the file to load if `shouldUseFileInsteadOfUrl` is `true`.
194
+ */
195
+ file: string;
187
196
  }
188
197
  export interface DesktopifyApp2 {
189
198
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.147.0",
3
+ "version": "7.149.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -98,6 +98,7 @@ export interface IAppMeta {
98
98
  snap?: IAppBuilderLib["config"]["snap"];
99
99
  windows?: {
100
100
  icon?: FilePath;
101
+ nsisInclude?: FilePath;
101
102
  };
102
103
  };
103
104
  shouldCodeSign?: boolean;
@@ -305,6 +305,15 @@ export interface DesktopifyAppWindow {
305
305
  */
306
306
  webPreferences?: Pick<WebPreferences, whitelistedWebPreferencesOptions>;
307
307
  };
308
+ /**
309
+ * The window should load a file instead of a URL.
310
+ * The file property (below) should also be set if the value is `true`.
311
+ */
312
+ shouldUseFileInsteadOfUrl?: boolean;
313
+ /**
314
+ * The path to the file to load if `shouldUseFileInsteadOfUrl` is `true`.
315
+ */
316
+ file: string;
308
317
  }
309
318
  // TODO: Look into hasMinHeight, etc
310
319