|
@@ -4,22 +4,30 @@
|
|
|
|
|
|
#### Build Setup
|
|
|
|
|
|
+#### 必须使用32位的node才能运行,且只适用于Window 7 以上版本
|
|
|
+
|
|
|
``` bash
|
|
|
# install dependencies
|
|
|
-npm install
|
|
|
+yarn
|
|
|
+
|
|
|
+# 运行该代码执行rebuild
|
|
|
+yarn run rebuild-ffi
|
|
|
+
|
|
|
+# 启动node原生功能
|
|
|
+.\node_modules\.bin\electron-rebuild.cmd
|
|
|
|
|
|
# serve with hot reload at localhost:9080
|
|
|
-npm run dev
|
|
|
+yarn run dev
|
|
|
|
|
|
# build electron application for production
|
|
|
-npm run build
|
|
|
+yarn run build
|
|
|
|
|
|
# run unit & end-to-end tests
|
|
|
-npm test
|
|
|
+yarn test
|
|
|
|
|
|
|
|
|
# lint all JS/Vue component files in `src/`
|
|
|
-npm run lint
|
|
|
+yarn run lint
|
|
|
|
|
|
```
|
|
|
|