|
@@ -10,15 +10,12 @@
|
|
"dev": "vue-cli-service serve",
|
|
"dev": "vue-cli-service serve",
|
|
"build": "vue-cli-service build",
|
|
"build": "vue-cli-service build",
|
|
"lint": "vue-cli-service lint",
|
|
"lint": "vue-cli-service lint",
|
|
- "start": "electron-forge start",
|
|
|
|
- "package": "electron-forge package",
|
|
|
|
- "make": "electron-forge make"
|
|
|
|
|
|
+ "builder": "electron-builder",
|
|
|
|
+ "builder:mac": "electron-builder --mac"
|
|
},
|
|
},
|
|
"dependencies": {
|
|
"dependencies": {
|
|
- "@electron-forge/plugin-fuses": "^7.3.1",
|
|
|
|
"axios": "^1.6.8",
|
|
"axios": "^1.6.8",
|
|
"core-js": "^3.36.1",
|
|
"core-js": "^3.36.1",
|
|
- "electron-squirrel-startup": "^1.0.0",
|
|
|
|
"element-ui": "^2.15.14",
|
|
"element-ui": "^2.15.14",
|
|
"js-cookie": "^3.0.5",
|
|
"js-cookie": "^3.0.5",
|
|
"md5": "^2.3.0",
|
|
"md5": "^2.3.0",
|
|
@@ -28,14 +25,8 @@
|
|
"vuex": "^3.6.2"
|
|
"vuex": "^3.6.2"
|
|
},
|
|
},
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
- "@babel/core": "^7.24.3",
|
|
|
|
|
|
+ "@babel/core": "^7.24.4",
|
|
"@babel/eslint-parser": "^7.24.1",
|
|
"@babel/eslint-parser": "^7.24.1",
|
|
- "@electron-forge/cli": "^7.3.1",
|
|
|
|
- "@electron-forge/maker-deb": "^7.3.1",
|
|
|
|
- "@electron-forge/maker-rpm": "^7.3.1",
|
|
|
|
- "@electron-forge/maker-squirrel": "^7.3.1",
|
|
|
|
- "@electron-forge/maker-zip": "^7.3.1",
|
|
|
|
- "@electron-forge/plugin-auto-unpack-natives": "^7.3.1",
|
|
|
|
"@electron/fuses": "^1.8.0",
|
|
"@electron/fuses": "^1.8.0",
|
|
"@rushstack/eslint-patch": "^1.10.1",
|
|
"@rushstack/eslint-patch": "^1.10.1",
|
|
"@types/md5": "^2.3.5",
|
|
"@types/md5": "^2.3.5",
|
|
@@ -45,7 +36,8 @@
|
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
"@vue/preload-webpack-plugin": "^2.0.0",
|
|
"@vue/preload-webpack-plugin": "^2.0.0",
|
|
"compression-webpack-plugin": "^6.1.2",
|
|
"compression-webpack-plugin": "^6.1.2",
|
|
- "electron": "^29.1.6",
|
|
|
|
|
|
+ "electron": "^29.2.0",
|
|
|
|
+ "electron-builder": "^24.13.3",
|
|
"eslint": "^8.57.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"eslint-plugin-vue": "^9.24.0",
|
|
"eslint-plugin-vue": "^9.24.0",
|
|
@@ -53,7 +45,7 @@
|
|
"patch-package": "^8.0.0",
|
|
"patch-package": "^8.0.0",
|
|
"postcss-html": "^1.6.0",
|
|
"postcss-html": "^1.6.0",
|
|
"prettier": "^3.2.5",
|
|
"prettier": "^3.2.5",
|
|
- "sass": "^1.72.0",
|
|
|
|
|
|
+ "sass": "^1.74.1",
|
|
"sass-loader": "^14.1.1",
|
|
"sass-loader": "^14.1.1",
|
|
"stylelint": "^15.11.0",
|
|
"stylelint": "^15.11.0",
|
|
"stylelint-config-recess-order": "^4.6.0",
|
|
"stylelint-config-recess-order": "^4.6.0",
|
|
@@ -66,6 +58,46 @@
|
|
"svgo": "^3.2.0",
|
|
"svgo": "^3.2.0",
|
|
"vue-template-compiler": "^2.6.14"
|
|
"vue-template-compiler": "^2.6.14"
|
|
},
|
|
},
|
|
|
|
+ "build": {
|
|
|
|
+ "appId": "com.gcls.page.textbook",
|
|
|
|
+ "productName": "gcls_page_textbook",
|
|
|
|
+ "directories": {
|
|
|
|
+ "output": "out"
|
|
|
|
+ },
|
|
|
|
+ "win": {
|
|
|
|
+ "target": "nsis",
|
|
|
|
+ "icon": "./public/icon.png"
|
|
|
|
+ },
|
|
|
|
+ "linux": {
|
|
|
|
+ "target": "AppImage",
|
|
|
|
+ "icon": "./public/icon.png"
|
|
|
|
+ },
|
|
|
|
+ "mac": {
|
|
|
|
+ "target": "dmg",
|
|
|
|
+ "icon": "./public/icon.png"
|
|
|
|
+ },
|
|
|
|
+ "nsis": {
|
|
|
|
+ "oneClick": false,
|
|
|
|
+ "allowToChangeInstallationDirectory": true,
|
|
|
|
+ "createDesktopShortcut": true,
|
|
|
|
+ "createStartMenuShortcut": true,
|
|
|
|
+ "perMachine": false
|
|
|
|
+ },
|
|
|
|
+ "dmg": {
|
|
|
|
+ "contents": [
|
|
|
|
+ {
|
|
|
|
+ "x": 110,
|
|
|
|
+ "y": 150
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "x": 240,
|
|
|
|
+ "y": 150,
|
|
|
|
+ "type": "link",
|
|
|
|
+ "path": "/Applications"
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
"browserslist": [
|
|
"browserslist": [
|
|
"> 1%",
|
|
"> 1%",
|
|
"last 2 versions",
|
|
"last 2 versions",
|