From 4426362799448b6228eedf20e7fc179ce4b3f860 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 8 Jun 2020 10:42:40 +0200 Subject: [PATCH] cleanup sqlite to make the distributed archives smaller --- bin/copy-trilium.sh | 5 ++++- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index dd7f128eb..8dd9e06c6 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -33,6 +33,9 @@ find $DIR/libraries -name "*.map" -type f -delete rm -r $DIR/src/public/app +rm -r $DIR/node_modules/sqlite3/build +rm -r $DIR/node_modules/sqlite3/deps + sed -i -e 's/app\/desktop.js/app-dist\/desktop.js/g' $DIR/src/views/desktop.ejs sed -i -e 's/app\/mobile.js/app-dist\/mobile.js/g' $DIR/src/views/mobile.ejs -sed -i -e 's/app\/setup.js/app-dist\/setup.js/g' $DIR/src/views/setup.ejs \ No newline at end of file +sed -i -e 's/app\/setup.js/app-dist\/setup.js/g' $DIR/src/views/setup.ejs diff --git a/package-lock.json b/package-lock.json index 292686f23..fccea7c3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "trilium", - "version": "0.42.5", + "version": "0.42.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 33de8bc38..71294edc3 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "yazl": "^2.5.1" }, "devDependencies": { - "electron": "9.0.3", + "electron": "9.0.2", "electron-builder": "22.6.0", "electron-packager": "14.2.1", "electron-rebuild": "1.10.1",