Update NW.js

This commit is contained in:
The Jared Wilcurt 2019-09-16 09:09:45 -04:00
parent 9280554d53
commit 7e87d285ca
7 changed files with 31 additions and 13 deletions

View File

@ -1 +1 @@
chrome 75 chrome 77

View File

@ -47,9 +47,25 @@ Want Vue-Router? Vuex? Use the Vue-CLI to add them:
* [Vue-CLI documentation](https://cli.vuejs.org/config). * [Vue-CLI documentation](https://cli.vuejs.org/config).
* * * * * *
## Alternatives ## Alternatives
* [nwjs-vue](https://github.com/elegantweb/nwjs-vue) - Uses Vue-CLI 2 * [nwjs-vue](https://github.com/elegantweb/nwjs-vue) - Uses Vue-CLI 2
* [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 * [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
* * *
## Maintainence of this repo
This is not for those *using* this repo, but for those *maintaining* it.
1. When updating the version of NW.js devDependency, also update these:
* `tests/unit/setup.js`
* `tests/unit/components/__snapshots__/HelloWorld.test.js.snap`
* `.browserslistrc`
1. Run `npm run regression` after updating dependencies or other major changes to verify builds still work correctly

6
package-lock.json generated
View File

@ -15352,9 +15352,9 @@
"dev": true "dev": true
}, },
"nw": { "nw": {
"version": "0.40.2-sdk", "version": "0.41.1-sdk",
"resolved": "https://registry.npmjs.org/nw/-/nw-0.40.2-sdk.tgz", "resolved": "https://registry.npmjs.org/nw/-/nw-0.41.1-sdk.tgz",
"integrity": "sha512-0jIICNhGWCDB4GSicC9wGMG0PKdn5KOI86v4efhf1mSa/nhTuOJ3wePrg3XU+4KjQnG7F78jEnNXBFwLvIQdGg==", "integrity": "sha512-CDTcKqQKjPAuIDseNf+KIMI1alYCj8bw+E7AozSs6OBObzNLYkIVUgmeSnn11iIvY1RpU5OhNDUM4V2AdLFFKQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "~1.1.3", "chalk": "~1.1.3",

View File

@ -19,8 +19,10 @@
"build:clean": "rimraf ./dist-vue ./dist", "build:clean": "rimraf ./dist-vue ./dist",
"build:vue": "vue-cli-service build --modern --dest ./dist-vue", "build:vue": "vue-cli-service build --modern --dest ./dist-vue",
"build:nw": "build --concurrent --tasks win-x86,linux-x86,linux-x64,mac-x64 --mirror https://dl.nwjs.io/ .", "build:nw": "build --concurrent --tasks win-x86,linux-x86,linux-x64,mac-x64 --mirror https://dl.nwjs.io/ .",
"build:win": "rimraf ./dist-vue && npm run build:vue && build --tasks win-x86 --mirror https://dl.nwjs.io/ .", "build:win": "npm run build:win:clean && npm run build:vue && build --tasks win-x86 --mirror https://dl.nwjs.io/ .",
"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",
"run:win": "dist\\nw-vue-1.0.0-win-x86\\nw-vue.exe", "run:win": "dist\\nw-vue-1.0.0-win-x86\\nw-vue.exe",
"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",
"lint": "vue-cli-service lint --no-fix", "lint": "vue-cli-service lint --no-fix",
"fix": "vue-cli-service lint --fix", "fix": "vue-cli-service lint --fix",
"test": "npm run test:unit", "test": "npm run test:unit",
@ -53,7 +55,7 @@
"jest": "^24.9.0", "jest": "^24.9.0",
"jest-environment-jsdom-global": "^1.2.0", "jest-environment-jsdom-global": "^1.2.0",
"jest-transform-stub": "^2.0.0", "jest-transform-stub": "^2.0.0",
"nw": "0.40.2-sdk", "nw": "0.41.1-sdk",
"nw-vue-devtools": "^1.3.0", "nw-vue-devtools": "^1.3.0",
"nwjs-builder-phoenix": "^1.15.0", "nwjs-builder-phoenix": "^1.15.0",
"nwjs-types": "^1.0.0", "nwjs-types": "^1.0.0",
@ -65,7 +67,7 @@
}, },
"chromium-args": "--load-extension='./node_modules/nw-vue-devtools/extension'", "chromium-args": "--load-extension='./node_modules/nw-vue-devtools/extension'",
"build": { "build": {
"nwVersion": "v0.39.2", "nwVersion": "v0.41.1",
"nwFlavor": "normal", "nwFlavor": "normal",
"targets": [ "targets": [
"zip", "zip",
@ -109,13 +111,13 @@
"node-main": "server.js" "node-main": "server.js"
}, },
"win": { "win": {
"icon": "public/icon.ico" "icon": "public/icon-256.ico"
}, },
"mac": { "mac": {
"icon": "public/icon.icns" "icon": "public/icon.icns"
}, },
"nsis": { "nsis": {
"icon": "public/icon.ico", "icon": "public/icon-256.ico",
"unIcon": "public/icon.ico", "unIcon": "public/icon.ico",
"languages": [ "languages": [
"English" "English"

BIN
public/icon-256.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -24,10 +24,10 @@ exports[`HelloWorld.vue Render default contents 1`] = `
<h3> <h3>
You are using You are using
Vue.js (v2.6.10), Vue.js (v2.6.10),
NW.js (v0.40.2-sdk), NW.js (v0.41.1-sdk),
Node.js (v12.9.1), Node.js (v12.9.1),
and and
Chromium (v76.0.3809.132). Chromium (v77.0.3865.75).
</h3> </h3>
<button> <button>
Show Show

View File

@ -26,8 +26,8 @@ global.beforeEach(() => {
NODE_ENV: 'development' NODE_ENV: 'development'
}, },
versions: { versions: {
chromium: '76.0.3809.132', chromium: '77.0.3865.75',
nw: '0.40.2', nw: '0.41.1',
'nw-flavor': 'sdk', 'nw-flavor': 'sdk',
node: '12.9.1' node: '12.9.1'
} }