mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 09:12:08 +08:00
electron tweaks
This commit is contained in:
parent
b890c9982b
commit
232ace0c3f
3 changed files with 7 additions and 7 deletions
2
app.js
2
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);
|
||||
|
|
4
build.sh
4
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
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue