Browse Source

预安装

gaoshuaixing 3 years ago
parent
commit
5d9c0c2c54
2 changed files with 3 additions and 1 deletions
  1. 1 1
      electron/config/encrypt.js
  2. 2 0
      package.json

+ 1 - 1
electron/config/encrypt.js

@@ -1,6 +1,6 @@
 /**
  * 加密配置
- * @param {String} type - strict (first confusion and then bytecode) || bytecode || confusion
+ * @param {String} type - bytecode || confusion || strict (first confusion and then bytecode)
  * @param {Array} directory - directory to be encrypted
  * @param {Array} fileExt - file suffix to be encrypted, currently only .js is supported
  */

+ 2 - 0
package.json

@@ -22,6 +22,8 @@
     "build-l-armv7l": "electron-builder -l=deb --armv7l",
     "build-lr-64": "electron-builder -l=rpm --x64",
     "build-lp-64": "electron-builder -l=pacman --x64",
+    "postinstall": "electron-builder install-app-deps",
+    "postuninstall": "electron-builder install-app-deps",
     "rd": "ee-core rd --dist_dir=./frontend/dist",
     "encrypt": "ee-core encrypt",
     "rebuild": "electron-rebuild",