diff --git a/app.js b/app.js index 230ff9a96..5584ba3de 100644 --- a/app.js +++ b/app.js @@ -20,8 +20,6 @@ const db = require('sqlite'); db.open(dataDir.DOCUMENT_PATH, { Promise }).then(async () => { const tableResults = await sql.getResults("SELECT name FROM sqlite_master WHERE type='table' AND name='notes'"); - console.log(tableResults); - if (tableResults.length !== 1) { console.log("No connection to initialized DB."); process.exit(1); diff --git a/build.sh b/build.sh index 3c1f9d7aa..fdffd3339 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,9 @@ #!/bin/bash +rm -r dist/* + +./node_modules/.bin/electron-rebuild + ./node_modules/.bin/electron-packager . --out=dist --platform=linux,win32 --overwrite #./node_modules/.bin/electron-installer-debian --src dist/trilium-linux-x64/ --dest dist/installers/ --arch amd64 \ No newline at end of file diff --git a/package.json b/package.json index cf4223bb4..6db85edb9 100644 --- a/package.json +++ b/package.json @@ -14,19 +14,14 @@ "publish-forge": "electron-forge publish" }, "dependencies": { - "electron-compile": "^6.4.2", - "electron-squirrel-startup": "^1.0.0", "body-parser": "~1.18.2", "cookie-parser": "~1.4.3", "debug": "~3.1.0", "ejs": "~2.5.7", "electron": "^1.8.2-beta.1", "electron-debug": "^1.0.0", - "electron-forge": "^4.1.2", - "electron-rebuild": "^1.6.0", "express": "~4.16.2", "express-session": "^1.15.6", - "express-sessions": "^1.0.6", "fs-extra": "^4.0.2", "helmet": "^3.9.0", "ini": "^1.3.4", @@ -39,6 +34,9 @@ "sqlite": "^2.8.0" }, "devDependencies": { + "electron-compile": "^6.4.2", + "electron-squirrel-startup": "^1.0.0", + "electron-rebuild": "^1.6.0", "devtron": "^1.1.0", "electron-packager": "^8.0.0", "electron": "^1.6.6",