Update NW.js
This commit is contained in:
parent
9280554d53
commit
7e87d285ca
@ -1 +1 @@
|
||||
chrome 75
|
||||
chrome 77
|
||||
|
16
README.md
16
README.md
@ -47,9 +47,25 @@ Want Vue-Router? Vuex? Use the Vue-CLI to add them:
|
||||
|
||||
* [Vue-CLI documentation](https://cli.vuejs.org/config).
|
||||
|
||||
|
||||
* * *
|
||||
|
||||
|
||||
## Alternatives
|
||||
|
||||
* [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
|
||||
|
||||
|
||||
* * *
|
||||
|
||||
|
||||
## 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
6
package-lock.json
generated
@ -15352,9 +15352,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"nw": {
|
||||
"version": "0.40.2-sdk",
|
||||
"resolved": "https://registry.npmjs.org/nw/-/nw-0.40.2-sdk.tgz",
|
||||
"integrity": "sha512-0jIICNhGWCDB4GSicC9wGMG0PKdn5KOI86v4efhf1mSa/nhTuOJ3wePrg3XU+4KjQnG7F78jEnNXBFwLvIQdGg==",
|
||||
"version": "0.41.1-sdk",
|
||||
"resolved": "https://registry.npmjs.org/nw/-/nw-0.41.1-sdk.tgz",
|
||||
"integrity": "sha512-CDTcKqQKjPAuIDseNf+KIMI1alYCj8bw+E7AozSs6OBObzNLYkIVUgmeSnn11iIvY1RpU5OhNDUM4V2AdLFFKQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "~1.1.3",
|
||||
|
12
package.json
12
package.json
@ -19,8 +19,10 @@
|
||||
"build:clean": "rimraf ./dist-vue ./dist",
|
||||
"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: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",
|
||||
"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",
|
||||
"fix": "vue-cli-service lint --fix",
|
||||
"test": "npm run test:unit",
|
||||
@ -53,7 +55,7 @@
|
||||
"jest": "^24.9.0",
|
||||
"jest-environment-jsdom-global": "^1.2.0",
|
||||
"jest-transform-stub": "^2.0.0",
|
||||
"nw": "0.40.2-sdk",
|
||||
"nw": "0.41.1-sdk",
|
||||
"nw-vue-devtools": "^1.3.0",
|
||||
"nwjs-builder-phoenix": "^1.15.0",
|
||||
"nwjs-types": "^1.0.0",
|
||||
@ -65,7 +67,7 @@
|
||||
},
|
||||
"chromium-args": "--load-extension='./node_modules/nw-vue-devtools/extension'",
|
||||
"build": {
|
||||
"nwVersion": "v0.39.2",
|
||||
"nwVersion": "v0.41.1",
|
||||
"nwFlavor": "normal",
|
||||
"targets": [
|
||||
"zip",
|
||||
@ -109,13 +111,13 @@
|
||||
"node-main": "server.js"
|
||||
},
|
||||
"win": {
|
||||
"icon": "public/icon.ico"
|
||||
"icon": "public/icon-256.ico"
|
||||
},
|
||||
"mac": {
|
||||
"icon": "public/icon.icns"
|
||||
},
|
||||
"nsis": {
|
||||
"icon": "public/icon.ico",
|
||||
"icon": "public/icon-256.ico",
|
||||
"unIcon": "public/icon.ico",
|
||||
"languages": [
|
||||
"English"
|
||||
|
BIN
public/icon-256.ico
Normal file
BIN
public/icon-256.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
@ -24,10 +24,10 @@ exports[`HelloWorld.vue Render default contents 1`] = `
|
||||
<h3>
|
||||
You are using
|
||||
Vue.js (v2.6.10),
|
||||
NW.js (v0.40.2-sdk),
|
||||
NW.js (v0.41.1-sdk),
|
||||
Node.js (v12.9.1),
|
||||
and
|
||||
Chromium (v76.0.3809.132).
|
||||
Chromium (v77.0.3865.75).
|
||||
</h3>
|
||||
<button>
|
||||
Show
|
||||
|
@ -26,8 +26,8 @@ global.beforeEach(() => {
|
||||
NODE_ENV: 'development'
|
||||
},
|
||||
versions: {
|
||||
chromium: '76.0.3809.132',
|
||||
nw: '0.40.2',
|
||||
chromium: '77.0.3865.75',
|
||||
nw: '0.41.1',
|
||||
'nw-flavor': 'sdk',
|
||||
node: '12.9.1'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user