Skip to content

Commit 7e87d28

Browse files
Update NW.js
1 parent 9280554 commit 7e87d28

File tree

7 files changed

+31
-13
lines changed

7 files changed

+31
-13
lines changed

.browserslistrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
chrome 75
1+
chrome 77

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,25 @@ Want Vue-Router? Vuex? Use the Vue-CLI to add them:
4747

4848
* [Vue-CLI documentation](https://cli.vuejs.org/config).
4949

50+
5051
* * *
5152

53+
5254
## Alternatives
5355

5456
* [nwjs-vue](https://github.com/elegantweb/nwjs-vue) - Uses Vue-CLI 2
5557
* [vue-desktop-basic](https://github.com/TheJaredWilcurt/vue-desktop-basic) - Does not use a build system at all, all `.vue` files run directly in the browser context
58+
59+
60+
* * *
61+
62+
63+
## Maintainence of this repo
64+
65+
This is not for those *using* this repo, but for those *maintaining* it.
66+
67+
1. When updating the version of NW.js devDependency, also update these:
68+
* `tests/unit/setup.js`
69+
* `tests/unit/components/__snapshots__/HelloWorld.test.js.snap`
70+
* `.browserslistrc`
71+
1. Run `npm run regression` after updating dependencies or other major changes to verify builds still work correctly

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
"build:clean": "rimraf ./dist-vue ./dist",
2020
"build:vue": "vue-cli-service build --modern --dest ./dist-vue",
2121
"build:nw": "build --concurrent --tasks win-x86,linux-x86,linux-x64,mac-x64 --mirror https://dl.nwjs.io/ .",
22-
"build:win": "rimraf ./dist-vue && npm run build:vue && build --tasks win-x86 --mirror https://dl.nwjs.io/ .",
22+
"build:win": "npm run build:win:clean && npm run build:vue && build --tasks win-x86 --mirror https://dl.nwjs.io/ .",
23+
"build:win:clean": "rimraf ./dist-vue ./dist/nw-vue-1.0.0-win-x86 ./dist/nw-vue-1.0.0-win-x86.zip ./dist/nw-vue-1.0.0-win-x86.7z ./dist/nw-vue-1.0.0-win-x86-Setup.exe",
2324
"run:win": "dist\\nw-vue-1.0.0-win-x86\\nw-vue.exe",
25+
"regression": "rd /s /q node_modules & rd /s /q node_modules & rd /s /q node_modules & npm install && npm run lint && npm test && npm run build:win && npm run run:win",
2426
"lint": "vue-cli-service lint --no-fix",
2527
"fix": "vue-cli-service lint --fix",
2628
"test": "npm run test:unit",
@@ -53,7 +55,7 @@
5355
"jest": "^24.9.0",
5456
"jest-environment-jsdom-global": "^1.2.0",
5557
"jest-transform-stub": "^2.0.0",
56-
"nw": "0.40.2-sdk",
58+
"nw": "0.41.1-sdk",
5759
"nw-vue-devtools": "^1.3.0",
5860
"nwjs-builder-phoenix": "^1.15.0",
5961
"nwjs-types": "^1.0.0",
@@ -65,7 +67,7 @@
6567
},
6668
"chromium-args": "--load-extension='./node_modules/nw-vue-devtools/extension'",
6769
"build": {
68-
"nwVersion": "v0.39.2",
70+
"nwVersion": "v0.41.1",
6971
"nwFlavor": "normal",
7072
"targets": [
7173
"zip",
@@ -109,13 +111,13 @@
109111
"node-main": "server.js"
110112
},
111113
"win": {
112-
"icon": "public/icon.ico"
114+
"icon": "public/icon-256.ico"
113115
},
114116
"mac": {
115117
"icon": "public/icon.icns"
116118
},
117119
"nsis": {
118-
"icon": "public/icon.ico",
120+
"icon": "public/icon-256.ico",
119121
"unIcon": "public/icon.ico",
120122
"languages": [
121123
"English"

public/icon-256.ico

7.61 KB
Binary file not shown.

tests/unit/components/__snapshots__/HelloWorld.test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ exports[`HelloWorld.vue Render default contents 1`] = `
2424
<h3>
2525
You are using
2626
Vue.js (v2.6.10),
27-
NW.js (v0.40.2-sdk),
27+
NW.js (v0.41.1-sdk),
2828
Node.js (v12.9.1),
2929
and
30-
Chromium (v76.0.3809.132).
30+
Chromium (v77.0.3865.75).
3131
</h3>
3232
<button>
3333
Show

tests/unit/setup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ global.beforeEach(() => {
2626
NODE_ENV: 'development'
2727
},
2828
versions: {
29-
chromium: '76.0.3809.132',
30-
nw: '0.40.2',
29+
chromium: '77.0.3865.75',
30+
nw: '0.41.1',
3131
'nw-flavor': 'sdk',
3232
node: '12.9.1'
3333
}

0 commit comments

Comments
 (0)