x1ongzhu 7 년 전
부모
커밋
51f4a7bc9b
5개의 변경된 파일859개의 추가작업 그리고 5개의 파일을 삭제
  1. 850 1
      package-lock.json
  2. 4 2
      package.json
  3. BIN
      public/icon.png
  4. 1 1
      src/pages/Booking/OrderBookingStep2.vue
  5. 4 1
      vue.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 850 - 1
package-lock.json


+ 4 - 2
package.json

@@ -5,11 +5,12 @@
   "scripts": {
     "serve": "vue-cli-service serve",
     "build": "vue-cli-service build",
-    "electron:build": "vue-cli-service electron:build",
+    "electron:build": "electron-icon-builder --input=./public/icon.png --output=build --flatten && vue-cli-service electron:build",
     "electron:serve": "vue-cli-service electron:serve",
     "postinstall": "electron-builder install-app-deps",
     "postuninstall": "electron-builder install-app-deps",
-    "rebuild": "electron-rebuild -f -w sqlite3"
+    "rebuild": "electron-rebuild -f -w sqlite3",
+    "electron:generate-icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten"
   },
   "main": "background.js",
   "dependencies": {
@@ -43,6 +44,7 @@
     "@vue/cli-service": "^3.8.0",
     "autoprefixer": "^9.6.0",
     "electron": "^5.0.0",
+    "electron-icon-builder": "^1.0.1",
     "electron-rebuild": "^1.8.5",
     "file-loader": "^4.0.0",
     "less": "^3.0.4",

BIN
public/icon.png


+ 1 - 1
src/pages/Booking/OrderBookingStep2.vue

@@ -225,7 +225,7 @@ export default {
             var hasDirectory = false;
             var hasFile = false
             fs.readdirSync(dir).forEach(child => {
-                if (child.substr(0, 1) == '.') {
+                if (child.startsWith('.')) {
                     return
                 }
                 let info = fs.statSync(path.resolve(dir, child))

+ 4 - 1
vue.config.js

@@ -9,7 +9,10 @@ module.exports = {
             externals: ['sqlite3', 'sharp', 'sequelize', 'ali-oss', 'archiver', 'dcraw'],
             // If you are using Yarn Workspaces, you may have multiple node_modules folders
             // List them all here so that VCP Electron Builder can find them
-            nodeModulesPath: ['../../node_modules', './node_modules']
+            nodeModulesPath: ['../../node_modules', './node_modules'],
+            builderOptions: {
+                productName: '图途象'
+            }
         }
     }
 }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.