From 07d8d796fe561bdea42ffe97f3259339b74261e2 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 3 May 2023 01:45:21 -0400 Subject: [PATCH] trilium: just client --- user/trilium/APKBUILD | 39 +--------------------------------- user/trilium/trilium-server.sh | 3 --- 2 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 user/trilium/trilium-server.sh diff --git a/user/trilium/APKBUILD b/user/trilium/APKBUILD index 61e918d..ebfe242 100644 --- a/user/trilium/APKBUILD +++ b/user/trilium/APKBUILD @@ -14,12 +14,11 @@ makedepends=" nodejs python3 " -subpackages="$pkgname-server $pkgname-dumpdb" +subpackages="$pkgname-dumpdb" source="$pkgname-$pkgver.tar.gz::https://github.com/zadam/trilium/archive/refs/tags/v$pkgver.tar.gz copy-trilium.sh.patch config-sample.ini.patch trilium.sh - trilium-server.sh trilium-dumpdb.sh trilium.desktop " @@ -31,7 +30,6 @@ prepare() { } _trilium_desktop_src_dir=./dist/trilium-linux-x64-src -_trilium_server_src_dir=./dist/trilium-linux-server-x64-src build() { export npm_config_cache="$srcdir/npm_cache" @@ -48,25 +46,6 @@ build() { --project=$_trilium_desktop_src_dir \ -c.electronDist=/usr/lib/electron \ -c.electronVersion="$(electron --version | tail -c +2)" - - # Building trilium-server - grep -v electron package.json > package-server.json - mv package-server.json package.json - - ./bin/copy-trilium.sh $_trilium_server_src_dir - rm -rf $_trilium_server_src_dir/dump-db - - mkdir $_trilium_server_src_dir/node_modules/better-sqlite3/build/Release - cp ./node_modules/better-sqlite3/build/Release/better_sqlite3.node $_trilium_server_src_dir/node_modules/better-sqlite3/build/Release/better_sqlite3.node - - rm -r $_trilium_server_src_dir/webpack* - rm -r $_trilium_server_src_dir/electron.js - - # Building trilium-dumpdb - cd dump-db - - npm install - cp -f ../node_modules/better-sqlite3/build/Release/better_sqlite3.node node_modules/better-sqlite3/build/Release/better_sqlite3.node } package() { @@ -82,21 +61,6 @@ package() { install -vDm644 "$srcdir"/$pkgname.desktop -t "$pkgdir"/usr/share/applications } -server() { - pkgdesc="A hierarchical note taking application with focus on building large personal knowledge bases - Server version" - depends="nodejs" - - install -vd "$pkgdir/usr/share/webapps/$pkgname" - cp -vr $_trilium_server_src_dir/. -t "$pkgdir/usr/share/webapps/$pkgname" - chmod -v 755 "$pkgdir/usr/share/webapps/$pkgname/src/www" - install -vDm644 $_trilium_server_src_dir/package.json -t "$pkgdir/usr/share/webapps/$pkgname" - install -vDm644 bin/tpl/anonymize-database.sql -t "$pkgdir/usr/share/webapps/$pkgname" - - install -vDm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/trilium-server" - # TODO: setup openrc - # install -vDm644 "$srcdir"/$pkgname.service -t "$pkgdir/usr/lib/systemd/system" -} - dumpdb() { pkgdesc="An emergency tool to extract notes from the database where they're stored to plain files on the filesystem" depends="nodejs" @@ -112,7 +76,6 @@ sha512sums=" 90ed115b3c7664d958f8426ac55253d46e770ebbfc4b7443581943df7e85211d709948e7ca41d698b28d4510c3e4c50244726ce49d44e1fa530fbf8129e42c5a copy-trilium.sh.patch 48fcb6931b632280a16b14744ee64804de1b399b0682076fdf1fa5669f691a53371532363020d8c7fb3704ea7bd633903cab1b92018f88a7170e6c2e213cd149 config-sample.ini.patch 6b03a7cce3836966d00e282d012cce944b8b56e29200fa06e64563a95e4edde591c0018715639a5e2acdbfd11a73ccb8283fbad19efc7dff218e8398c7e12d30 trilium.sh -14a97f1fab392dd9a55440712bf3f2976de20e9c09789392984313455af77d9900445bd06cf2c3a3879a94cab893e83bd4093060f9214b2c201af89d7f62f663 trilium-server.sh e1fa62cdc2ecde41f5c5336bca3dd2d2b9e65de1a3162ef4ed336aaa7660c2b1c23793df7cdbd09e8b020890de0ba2d58c8704d2d1f0916da1212167c4820c0f trilium-dumpdb.sh d0c051a0412f17f0373ead660ae6ddfefe5e8f8e2104a0ffc52d9af94c57c1274a2dc8d2317516dafa0fa85263250633acb56556318f21a663105dd7fce9b36f trilium.desktop " diff --git a/user/trilium/trilium-server.sh b/user/trilium/trilium-server.sh deleted file mode 100644 index 983724d..0000000 --- a/user/trilium/trilium-server.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec node /usr/share/webapps/trilium-server/src/www $@