Before we used native method from electron for updating and notifying (`checkForUpdatesAndNotify`). It simply checked if there's an update, downloaded it, applied in the background and showed OS notification. The flow is now updated. Updates will be checked, user will be asked to confirm about whether to download and apply the updates, then a UI with progress bar will be shown and user will be asked to restart the application. This commit also moves electron related logic to `/electron/` folder (as there are now multiple files) to keep them structured. Also the electon entrypoint `background.ts` is renamed to `main.ts`. The reason it was named `background.ts` by vue-cli-plugin-electron-builder was to remove the confusion between `main.ts` of Vue itself. However, as they are kept in different folders, but this is not the case for us. Better than `checkForUpdatesAndNotify`. Organizes electron desktop app logic in same folder to allow using multiple files in a structured manner.
79 lines
2.9 KiB
JSON
79 lines
2.9 KiB
JSON
{
|
|
"name": "privacy.sexy",
|
|
"version": "0.10.3",
|
|
"private": true,
|
|
"description": "Enforce privacy & security best-practices on Windows and macOS, because privacy is sexy 🍑🍆",
|
|
"author": "undergroundwires",
|
|
"scripts": {
|
|
"serve": "vue-cli-service serve",
|
|
"build": "vue-cli-service build",
|
|
"test:unit": "vue-cli-service test:unit",
|
|
"test:integration": "vue-cli-service test:unit \"tests/integration/**/*.spec.ts\"",
|
|
"lint": "npm run lint:vue && npm run lint:yaml && npm run lint:md && npm run lint:md:relative-urls && npm run lint:md:consistency",
|
|
"electron:build": "vue-cli-service electron:build",
|
|
"electron:serve": "vue-cli-service electron:serve",
|
|
"lint:md": "markdownlint **/*.md --ignore node_modules",
|
|
"lint:md:consistency": "remark . --frail --use remark-preset-lint-consistent",
|
|
"lint:md:relative-urls": "remark . --frail --use remark-validate-links",
|
|
"lint:vue": "vue-cli-service lint --no-fix",
|
|
"lint:yaml": "yamllint **/*.yaml --ignore=node_modules/**/*.yaml",
|
|
"postinstall": "electron-builder install-app-deps",
|
|
"postuninstall": "electron-builder install-app-deps"
|
|
},
|
|
"main": "background.js",
|
|
"dependencies": {
|
|
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
"@fortawesome/free-brands-svg-icons": "^5.15.3",
|
|
"@fortawesome/free-regular-svg-icons": "^5.15.3",
|
|
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
"@fortawesome/vue-fontawesome": "^2.0.2",
|
|
"@juggle/resize-observer": "^3.3.1",
|
|
"ace-builds": "^1.4.12",
|
|
"core-js": "^3.12.1",
|
|
"cross-fetch": "^3.1.4",
|
|
"electron-progressbar": "^2.0.1",
|
|
"file-saver": "^2.0.5",
|
|
"inversify": "^5.1.1",
|
|
"liquor-tree": "^0.2.70",
|
|
"v-tooltip": "2.1.3",
|
|
"vue": "^2.6.12",
|
|
"vue-class-component": "^7.2.6",
|
|
"vue-js-modal": "^2.0.0-rc.6",
|
|
"vue-property-decorator": "^9.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/ace": "0.0.45",
|
|
"@types/chai": "^4.2.18",
|
|
"@types/file-saver": "^2.0.2",
|
|
"@types/mocha": "^8.2.2",
|
|
"@vue/cli-plugin-babel": "^4.5.13",
|
|
"@vue/cli-plugin-typescript": "^4.5.13",
|
|
"@vue/cli-plugin-unit-mocha": "^4.5.13",
|
|
"@vue/cli-service": "^4.5.13",
|
|
"@vue/test-utils": "1.2.0",
|
|
"chai": "^4.3.4",
|
|
"electron": "^12.0.7",
|
|
"electron-devtools-installer": "^3.2.0",
|
|
"electron-log": "^4.3.5",
|
|
"electron-updater": "^4.3.8",
|
|
"js-yaml-loader": "^1.2.2",
|
|
"markdownlint-cli": "^0.27.1",
|
|
"remark-cli": "^9.0.0",
|
|
"remark-lint-no-dead-urls": "^1.1.0",
|
|
"remark-preset-lint-consistent": "^4.0.0",
|
|
"remark-validate-links": "^10.0.4",
|
|
"sass": "^1.32.12",
|
|
"sass-loader": "^10.0.1",
|
|
"tslib": "^2.2.0",
|
|
"typescript": "^4.2.4",
|
|
"vue-cli-plugin-electron-builder": "^2.0.0-rc.6",
|
|
"vue-template-compiler": "^2.6.12",
|
|
"yaml-lint": "^1.2.4"
|
|
},
|
|
"homepage": "https://privacy.sexy",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/undergroundwires/privacy.sexy.git"
|
|
}
|
|
}
|