litian
2024-11-05 18d886c2f23dc5c032ebcf42bbb39c739d908a4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
  "name": "DigitalTextbookReader",
  "version": "1.0.1",
  "private": true,
  "main": "electron-commonJS/main.js",
  "scripts": {
    "ele-ts-build": "tsc --project tsconfig.electron.json",
    "hot-update-ts": "gulp watch:ts",
    "hot-update-electron": "gulp watch:electron",
    "dev": "SET NODE_ENV=development&& yarn ele-ts-build && vite",
    "build": "yarn ele-ts-build && vite build && electron-builder",
    "build_mac": "yarn ele-ts-build && vite build && electron-builder --mac",
    "preview": "vite preview",
    "build-only": "vite build",
    "type-check": "vue-tsc --build --force",
    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
    "format": "prettier --write src/"
  },
  "dependencies": {
    "@element-plus/icons-vue": "^2.3.1",
    "@vue-office/docx": "^1.6.1",
    "axios": "^1.6.2",
    "cross-env": "^7.0.3",
    "electron-connect": "^0.6.3",
    "electron-reload": "^2.0.0-alpha.1",
    "electron-store": "^8.1.0",
    "electron-updater": "^6.1.7",
    "element-plus": "^2.4.3",
    "fabric": "^5.3.0",
    "js-web-screen-shot": "^1.9.9-rc.18",
    "less": "^4.2.0",
    "less-loader": "^11.1.3",
    "moment": "^2.30.1",
    "node-xlsx": "^0.23.0",
    "pinia": "^2.1.7",
    "qiankun": "^2.10.16",
    "spark-md5": "^3.0.2",
    "style-resources-loader": "^1.5.0",
    "vite-plugin-electron": "^0.15.5",
    "vue": "^3.3.10",
    "vue-cli-plugin-style-resources-loader": "^0.1.5",
    "vue-clipboard3": "^2.0.0",
    "vue-demi": "^0.14.7",
    "vue-router": "^4.2.5",
    "viewerjs": "^1.11.6"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.3.3",
    "@tsconfig/node18": "^18.2.2",
    "@types/node": "^18.19.2",
    "@vitejs/plugin-vue": "^4.5.1",
    "@vue/eslint-config-prettier": "^8.0.0",
    "@vue/eslint-config-typescript": "^12.0.0",
    "@vue/tsconfig": "^0.4.0",
    "electron": "21.4.4",
    "electron-builder": "^24.9.1",
    "electron-updater": "^6.1.7",
    "eslint": "^8.49.0",
    "eslint-plugin-vue": "^9.17.0",
    "npm-run-all2": "^6.1.1",
    "prettier": "^3.0.3",
    "typescript": "~5.2.0",
    "vite": "^5.0.5",
    "vue-tsc": "^1.8.25"
  },
  "build": {
    "appId": "DigitalTextbookReader",
    "productName": "数字教材阅读器",
    "asar": true,
    "directories": {
      "output": "release/"
    },
    "files": [
      "electron-commonJS",
      {
        "from": "dist",
        "to": "electron-commonJS"
      }
    ],
    "mac": {
      "artifactName": "${productName}_${version}.${ext}",
      "target": [
        "dmg"
      ]
    },
    "win": {
      "target": [
        {
          "target": "nsis",
          "arch": [
            "x64"
          ]
        }
      ],
      "icon": "./public/favicon.ico",
      "artifactName": "${productName}_${version}.${ext}"
    },
    "nsis": {
      "oneClick": false,
      "perMachine": true,
      "allowToChangeInstallationDirectory": true,
      "deleteAppDataOnUninstall": true,
      "include": "./build/installer.nsh"
    },
    "publish": [
      {
        "provider": "generic",
        "url": "https://jsek.bnuic.com/"
      }
    ],
    "releaseInfo": {
      "releaseNotes": "这里填写具体的版本更新内容"
    }
  }
}