react-native-electron-platform 0.0.14 → 0.0.16

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.
@@ -11,38 +11,55 @@
11
11
  "buildDependenciesFromSource": false,
12
12
  "npmRebuild": false,
13
13
  "nodeGypRebuild": false,
14
+
14
15
  "directories": {
15
16
  "output": "dist",
16
17
  "buildResources": "node_modules/react-native-electron-platform/src"
17
18
  },
19
+
18
20
  "publish": [
19
21
  {
20
22
  "provider": "generic",
21
23
  "url": "https://yourdomain.com/updates/"
22
24
  }
23
25
  ],
26
+
24
27
  "files": [
25
28
  "electron/**/*",
26
29
  "web-build/**/*",
27
30
  "package.json",
31
+
32
+ "node_modules/react-native-electron-platform/src/**/*",
33
+ "node_modules/react-native-electron-platform/index.mjs",
34
+
28
35
  "!**/*.map",
29
36
  "!**/*.md",
30
37
  "!**/test/**",
31
38
  "!**/__tests__/**",
32
39
  "!**/docs/**",
33
40
  "!**/locales/**",
34
- "!**/node_modules/react-native/**",
41
+ "!**/example/**",
42
+
43
+ "!**/android/**",
44
+ "!**/ios/**",
45
+ "!**/build/**",
46
+
35
47
  "!**/node_modules/electron/**",
36
- "!**/node_modules/react-native-*/*",
37
- "node_modules/react-native-electron-platform/src/**/*",
38
- "node_modules/react-native-electron-platform/index.mjs"
48
+ "!**/node_modules/react-native/**",
49
+ "!node_modules/**/android/**",
50
+ "!node_modules/**/ios/**",
51
+ "!node_modules/**/build/**",
52
+ "!node_modules/**/example/**"
39
53
  ],
54
+
40
55
  "asarUnpack": [
41
56
  "**/*.node"
42
57
  ],
58
+
43
59
  "extraMetadata": {
44
60
  "main": "node_modules/react-native-electron-platform/index.mjs"
45
61
  },
62
+
46
63
  "win": {
47
64
  "target": [
48
65
  {
@@ -56,14 +73,16 @@
56
73
  ],
57
74
  "icon": "electron/icon.ico"
58
75
  },
76
+
59
77
  "nsis": {
60
78
  "oneClick": false,
61
79
  "allowToChangeInstallationDirectory": true,
62
80
  "createDesktopShortcut": true,
63
81
  "createStartMenuShortcut": true,
64
- "shortcutName": "ris",
82
+ "shortcutName": "app",
65
83
  "artifactName": "${productName} Setup ${version}.${ext}"
66
84
  },
85
+
67
86
  "msi": {
68
87
  "oneClick": false,
69
88
  "perMachine": true,
@@ -71,4 +90,4 @@
71
90
  "createStartMenuShortcut": true,
72
91
  "warningsAsErrors": false
73
92
  }
74
- }
93
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-electron-platform",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "A boilerplate and utilities for running React Native applications in Electron",
5
5
  "main": "index.mjs",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ export function createMainWindow(__dirname) {
8
8
  const { x, y, width, height } = primaryDisplay.bounds;
9
9
 
10
10
  const iconPath = path.join(app.getAppPath(), "electron/icon.ico");
11
- const preloadPath = path.join(__dirname, "preload.mjs");
11
+ const preloadPath = path.join(__dirname, "src", "preload.mjs");
12
12
 
13
13
  const mainWindow = new BrowserWindow({
14
14
  x,
package/src/icon.ico DELETED
Binary file