diff --git a/package-lock.json b/package-lock.json index 676ab1a1..0eb75f01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2260,6 +2260,29 @@ "sha.js": "^2.4.8" } }, + "cross-env": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz", + "integrity": "sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg==", + "requires": { + "cross-spawn": "^6.0.5", + "is-windows": "^1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + } + } + }, "cross-spawn": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", @@ -3674,6 +3697,7 @@ "commander": "^2.13.0", "copy-webpack-plugin": "^4.5.4", "cors": "^2.8.4", + "cross-env": "^5.2.0", "css-loader": "^1.0.0", "deepmerge": "^2.1.0", "electron": "2.0.12", @@ -9277,6 +9301,11 @@ "resolved": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.6.0.tgz", "integrity": "sha512-x3LV3wdmmERhVCYy3quqA57NJW7F3i6faas++pJQWtknWT+n7k30F4TVdHvCLn48peTJFRvCpxs3UuFPqgeELg==" }, + "vue-toasted": { + "version": "1.1.26", + "resolved": "https://registry.npmjs.org/vue-toasted/-/vue-toasted-1.1.26.tgz", + "integrity": "sha512-Z4/gfPcqdzsRvif7UITrZOkh3C6jm0yQKJyr9kX31IGWXor5dNipE1Sc5SnlL5RLmY7vlLa+SqIjc9Gbpy7V0g==" + }, "watchpack": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", diff --git a/package.json b/package.json index 468f2844..64dac8f0 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "build": { "asarUnpack": [ - "node_modules/sqlite3" + "node_modules/sharp" ], "productName": "Frappe Accounting", "appId": "io.frappe.accounting", @@ -17,7 +17,7 @@ "output": "build" }, "files": [ - "dist/electron/**/*" + "dist/electron" ], "dmg": { "contents": [ @@ -35,12 +35,15 @@ ] }, "mac": { + "target": "dmg", "icon": "build/icons/icon.icns" }, "win": { + "target": "nsis", "icon": "build/icons/icon.ico" }, "linux": { + "target": "AppImage", "icon": "build/icons" } }, @@ -55,6 +58,7 @@ "postinstall": "electron-builder install-app-deps" }, "dependencies": { + "cross-env": "^5.2.0", "frappejs": "github:frappe/frappejs", "popper.js": "^1.14.4", "vue-toasted": "^1.1.25" diff --git a/src/pages/SetupWizard/SetupWizard.vue b/src/pages/SetupWizard/SetupWizard.vue index f84335e9..af70702f 100644 --- a/src/pages/SetupWizard/SetupWizard.vue +++ b/src/pages/SetupWizard/SetupWizard.vue @@ -51,6 +51,7 @@ export default { }, created() { this.doc = new Observable(); + this.doc.isNew = () => true; }, methods: { async submit() {