Pārlūkot izejas kodu

打包为windows安装程序的配置完善,修改package.json和增减.npmrc文件

zhouyang.xie 2 mēneši atpakaļ
vecāks
revīzija
3c2a06135a
3 mainītis faili ar 116 papildinājumiem un 206 dzēšanām
  1. 7 0
      .npmrc
  2. 105 202
      package-lock.json
  3. 4 4
      package.json

+ 7 - 0
.npmrc

@@ -0,0 +1,7 @@
+# 配置 npm 主镜像源
+registry=https://registry.npmmirror.com/
+# 配置 electron 镜像源(关键)
+electron_mirror=https://npmmirror.com/mirrors/electron/
+electron_custom_dir="{{ version }}"
+# 可选:配置 electron-builder 相关镜像(如果用到)
+electron-builder-binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 105 - 202
package-lock.json


+ 4 - 4
package.json

@@ -1,17 +1,17 @@
 {
   "main": "electron/main.mjs",
-  "name": "meet-admin",
+  "name": "thunderstrike",
   "type": "module",
   "version": "0.0.1",
   "private": true,
-  "description": "meet-admin open source management system",
+  "description": "thunderstrike open source management system",
   "author": {
     "name": "Meet you"
   },
   "license": "MIT",
   "keywords": [
     "admin",
-    "meet-admin",
+    "thunderstrike",
     "element-plus",
     "unocss",
     "typescript",
@@ -117,7 +117,7 @@
     "vue-tsc": "^2.1.6"
   },
   "build": {
-    "appId": "com.example.meet-admin",
+    "appId": "com.zn-techcn.thunderstrike",
     "productName": "叶片引下线故障检测平台",
     "directories": {
       "output": "dist_electron/thunderstrike"

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels