diff --git a/.browserslistrc b/.browserslistrc index 24dd393..a9fc3f5 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -1 +1 @@ -chrome 75 +chrome 77 diff --git a/README.md b/README.md index 2656e6d..6ba2f26 100644 --- a/README.md +++ b/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 diff --git a/package-lock.json b/package-lock.json index 7323f9f..31ac126 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index e01e656..626dc4a 100644 --- a/package.json +++ b/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" diff --git a/public/icon-256.ico b/public/icon-256.ico new file mode 100644 index 0000000..1528e89 Binary files /dev/null and b/public/icon-256.ico differ diff --git a/tests/unit/components/__snapshots__/HelloWorld.test.js.snap b/tests/unit/components/__snapshots__/HelloWorld.test.js.snap index f45ac5a..5e21db2 100644 --- a/tests/unit/components/__snapshots__/HelloWorld.test.js.snap +++ b/tests/unit/components/__snapshots__/HelloWorld.test.js.snap @@ -24,10 +24,10 @@ exports[`HelloWorld.vue Render default contents 1`] = `

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).