Browse Source

modify build target

MaysWind 6 years ago
parent
commit
caa51e4fa3
1 changed files with 17 additions and 3 deletions
  1. 17 3
      package.json

+ 17 - 3
package.json

@@ -12,8 +12,7 @@
     "postinstall": "install-app-deps",
     "clean": "rimraf dist",
     "start": "electron .",
-    "publish:win32": "npm run clean && build --ia32",
-    "publish:win64": "npm run clean && build --x64",
+    "publish:win": "npm run clean && build --win",
     "publish:osx": "npm run clean && build --mac"
   },
   "repository": {
@@ -89,7 +88,22 @@
     ],
     "win": {
       "icon": "assets/AriaNg.ico",
-      "target": "7z"
+      "target": [
+        {
+          "target": "msi",
+          "arch": [
+            "x64",
+            "ia32"
+          ]
+        },
+        {
+          "target": "7z",
+          "arch": [
+            "x64",
+            "ia32"
+          ]
+        }
+      ]
     },
     "mac": {
       "category": "public.app-category.utilities",