diff --git a/README.md b/README.md index 6637171..4480b1f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ > An electron-vue project +### 是时候复活了 + +Electron-Marisa项目最后修改的4年前至今,nodejs、npm以及许多依赖的接口发生了巨大的改变,虽然2018年也不是那么久远,但安装合适版本的依赖是一件很难的事情。好在npm可以很简单地安装旧版本的依赖。因此,将`package.json`中的依赖版本的`^`修改为了`=`,锁定了绝大多数的依赖版本。并在测试后指定了`vue`、`vue-router`、`vue-template-compiler`、`electron`以及`webpack-dev-server`的版本。 + +经过测试,在wsl2 ubuntu20.04下,使用Nodejs v7.10.1以及npm v3.10.10,可以进行热调试并打包。 + +在Windows下,需要使用较高版本的包含了windows-build-tools的nodejs和对应的npm安装依赖,再使用较低版本的nodejs和npm进行调试和打包。经过测试,使用nodejs v16.15.0和npm v8.5.5可以完成依赖安装,使用nodejs v6.10.3和npm v3.10.10可以进行调试和打包。 + +如果你不想折腾,你也可以直接下载打包好的Windows程序。[Google Drive](https://drive.google.com/file/d/19AGSBOgo3w_u_PPGwJ9oG48iceLvFFZh/view?usp=sharing) #### Build Setup ``` bash diff --git a/package.json b/package.json index 32c3ea1..dd2fd94 100644 --- a/package.json +++ b/package.json @@ -24,60 +24,60 @@ "postinstall": "npm run lint:fix" }, "dependencies": { - "axios": "^0.16.1", - "fs-extra": "^6.0.1", - "lowdb": "^1.0.0", - "segment": "^0.1.3", - "vue": "^2.3.3", - "vue-electron": "^1.0.6", - "vue-router": "^2.5.3", - "vuex": "^2.3.1" + "axios": "=0.16.1", + "fs-extra": "=6.0.1", + "lowdb": "=1.0.0", + "segment": "=0.1.3", + "vue": "=2.6.14", + "vue-electron": "=1.0.6", + "vue-router": "=2.8.1", + "vuex": "=2.3.1" }, "devDependencies": { - "babel-core": "^6.25.0", - "babel-eslint": "^7.2.3", - "babel-loader": "^7.1.1", - "babel-plugin-transform-runtime": "^6.23.0", - "babel-preset-env": "^1.6.0", - "babel-preset-stage-0": "^6.24.1", - "babel-register": "^6.24.1", - "babili-webpack-plugin": "^0.1.2", - "cfonts": "^1.1.3", - "chalk": "^2.1.0", - "copy-webpack-plugin": "^4.0.1", - "cross-env": "^5.0.5", - "css-loader": "^0.28.4", - "del": "^3.0.0", - "devtron": "^1.4.0", - "electron": "^1.7.5", - "electron-debug": "^1.4.0", - "electron-devtools-installer": "^2.2.0", - "electron-packager": "^8.5.0", - "electron-rebuild": "^1.1.3", - "eslint": "^4.4.1", - "eslint-config-standard": "^10.2.1", - "eslint-friendly-formatter": "^3.0.0", - "eslint-loader": "^1.9.0", - "eslint-plugin-html": "^3.1.1", - "eslint-plugin-import": "^2.7.0", - "eslint-plugin-node": "^5.1.1", - "eslint-plugin-promise": "^3.5.0", - "eslint-plugin-standard": "^3.0.1", - "extract-text-webpack-plugin": "^3.0.0", - "file-loader": "^0.11.2", - "html-webpack-plugin": "^2.30.1", - "multispinner": "^0.2.1", - "node-loader": "^0.6.0", - "style-loader": "^0.18.2", - "stylus": "^0.54.5", - "stylus-loader": "^3.0.2", - "url-loader": "^0.5.9", - "vue-html-loader": "^1.2.4", - "vue-loader": "^13.0.5", - "vue-style-loader": "^3.0.1", - "vue-template-compiler": "^2.4.2", - "webpack": "^3.5.2", - "webpack-dev-server": "^2.7.1", - "webpack-hot-middleware": "^2.18.2" + "babel-core": "=6.25.0", + "babel-eslint": "=7.2.3", + "babel-loader": "=7.1.1", + "babel-plugin-transform-runtime": "=6.23.0", + "babel-preset-env": "=1.6.0", + "babel-preset-stage-0": "=6.24.1", + "babel-register": "=6.24.1", + "babili-webpack-plugin": "=0.1.2", + "cfonts": "=1.1.3", + "chalk": "=2.1.0", + "copy-webpack-plugin": "=4.0.1", + "cross-env": "=5.0.5", + "css-loader": "=0.28.4", + "del": "=3.0.0", + "devtron": "=1.4.0", + "electron": "=1.8.8", + "electron-debug": "=1.4.0", + "electron-devtools-installer": "=2.2.0", + "electron-packager": "=8.5.0", + "electron-rebuild": "=1.1.3", + "eslint": "=4.4.1", + "eslint-config-standard": "=10.2.1", + "eslint-friendly-formatter": "=3.0.0", + "eslint-loader": "=1.9.0", + "eslint-plugin-html": "=3.1.1", + "eslint-plugin-import": "=2.7.0", + "eslint-plugin-node": "=5.1.1", + "eslint-plugin-promise": "=3.5.0", + "eslint-plugin-standard": "=3.0.1", + "extract-text-webpack-plugin": "=3.0.0", + "file-loader": "=0.11.2", + "html-webpack-plugin": "=2.30.1", + "multispinner": "=0.2.1", + "node-loader": "=0.6.0", + "style-loader": "=0.18.2", + "stylus": "=0.54.5", + "stylus-loader": "=3.0.2", + "url-loader": "=0.5.9", + "vue-html-loader": "=1.2.4", + "vue-loader": "=13.0.5", + "vue-style-loader": "=3.0.1", + "vue-template-compiler": "=2.6.14", + "webpack": "=3.5.2", + "webpack-dev-server": "=2.11.5", + "webpack-hot-middleware": "=2.18.2" } }