@proton-app/main 0.1.9 → 0.2.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.
Files changed (2) hide show
  1. package/dist/setup.js +8 -0
  2. package/package.json +3 -38
package/dist/setup.js CHANGED
@@ -1,11 +1,19 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.setupApp = setupApp;
4
7
  const electron_1 = require("electron");
5
8
  const communication_1 = require("./communication");
6
9
  const csp_1 = require("./csp");
10
+ const electron_squirrel_startup_1 = __importDefault(require("electron-squirrel-startup"));
7
11
  let mainWindow = null;
8
12
  function setupApp(app, storage, opts) {
13
+ if (electron_squirrel_startup_1.default) {
14
+ app.quit();
15
+ return;
16
+ }
9
17
  function createWindow() {
10
18
  if (mainWindow && !mainWindow.isDestroyed())
11
19
  return mainWindow;
package/package.json CHANGED
@@ -1,76 +1,41 @@
1
1
  {
2
2
  "name": "@proton-app/main",
3
- "version": "0.1.9",
4
-
3
+ "version": "0.2.0",
5
4
  "description": "",
6
-
7
5
  "keywords": [],
8
-
9
6
  "author": "",
10
-
11
7
  "license": "ISC",
12
-
13
8
  "main": "./dist/index.js",
14
-
15
9
  "types": "./dist/index.d.ts",
16
-
17
10
  "files": [
18
-
19
11
  "dist"
20
-
21
12
  ],
22
-
23
13
  "publishConfig": {
24
-
25
14
  "access": "public"
26
-
27
15
  },
28
-
29
16
  "exports": {
30
-
31
17
  ".": {
32
-
33
18
  "default": "./dist/index.js",
34
-
35
19
  "types": "./dist/index.d.ts"
36
-
37
20
  },
38
-
39
21
  "./types": "./dist/index.d.ts"
40
-
41
22
  },
42
-
43
23
  "engines": {},
44
-
45
24
  "scripts": {
46
-
47
25
  "build": "tsc"
48
-
49
26
  },
50
-
51
27
  "dependencies": {
52
-
53
28
  "@bouko/ts": "^0.3.8",
54
-
29
+ "electron-squirrel-startup": "^1.0.1",
55
30
  "electron-store": "^11.0.2",
56
-
57
31
  "path": "^0.12.7",
58
-
59
32
  "snatch-http": "^0.0.7"
60
-
61
33
  },
62
-
63
34
  "devDependencies": {
64
-
35
+ "@types/electron-squirrel-startup": "^1.0.2",
65
36
  "@types/react": "^19.2.13",
66
-
67
37
  "electron": "^39.2.7",
68
-
69
38
  "react-router-dom": "^7.12.0",
70
-
71
39
  "typescript": "^5.9.3"
72
-
73
40
  }
74
-
75
41
  }
76
-