PUGE hace 9 meses
padre
commit
14a36a9a87
Se han modificado 6 ficheros con 7 adiciones y 5 borrados
  1. 2 2
      config.json
  2. BIN
      icon.ico
  3. BIN
      icon2.ico
  4. 1 0
      main.js
  5. 3 3
      package.json
  6. 1 0
      preload.js

+ 2 - 2
config.json

@@ -1,7 +1,7 @@
 {
     "enterURL": "https://demos.run/soundSynthesis/index1.html",
-    "width": 1920,
-    "height": 1080,
+    "width": 960,
+    "height": 570,
     "webPreferences": {
         "webSecurity": false,
         "nodeIntegration": false,

BIN
icon.ico


BIN
icon2.ico


+ 1 - 0
main.js

@@ -25,6 +25,7 @@ let webConfig = {
 console.log(__dirname + "\\config.json")
 if (fs.existsSync("./config.json")) {
   webConfig = JSON.parse(fs.readFileSync('./config.json', 'utf-8'))
+  webConfig.webPreferences.preload = path.join(__dirname, "preload.js")
   enterURL = webConfig.enterURL
 }
 

+ 3 - 3
package.json

@@ -5,13 +5,13 @@
   "main": "main.js",
   "scripts": {
     "start": "electron .",
-    "pack": "electron-builder --dir",
-    "dist": "electron-builder"
+    "pack": "electron-builder --dir --win --ia32",
+    "dist": "electron-builder --win --ia32"
   },
   "build": {
     "extraResources": [],
     "win": {
-      "icon": "/icon2.ico",
+      "icon": "/icon.ico",
       "target": [
         {
           "target": "portable",

+ 1 - 0
preload.js

@@ -153,3 +153,4 @@ setInterval(() => {
 //   };
 
 // })(XMLHttpRequest);
+