Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 03ab41b

Browse files
committed
build: Investigate not embedding better_sqlite3 natives
1 parent 956beb1 commit 03ab41b

11 files changed

+0
-16
lines changed
Binary file not shown.
Binary file not shown.
-1.7 MB
Binary file not shown.
-1.94 MB
Binary file not shown.
-1.68 MB
Binary file not shown.

bin/build-linux-x64.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ SRC_DIR=./dist/trilium-linux-x64-src
2626

2727
rm -r "$SRC_DIR"/src/public/app-dist/*.mobile.*
2828

29-
echo "Copying required linux-x64 binaries"
30-
cp -r bin/better-sqlite3/linux-desktop-better_sqlite3.node "$SRC_DIR"/node_modules/better-sqlite3/build/Release/better_sqlite3.node
31-
3229
echo "Packaging linux x64 electron build"
3330
./node_modules/.bin/electron-packager "$SRC_DIR" --asar --out=dist --executable-name=trilium --platform=linux --arch=x64 --overwrite
3431

bin/build-mac-arm64.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ then
77
./bin/copy-trilium.sh $SRC_DIR
88
fi
99

10-
echo "Copying required mac arm64 binaries"
11-
12-
cp -r bin/better-sqlite3/mac-arm64-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
13-
1410
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
1511

1612
echo "Packaging mac arm64 electron build"

bin/build-mac-x64.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ fi
99

1010
echo "Copying required mac x64 binaries"
1111

12-
cp -r bin/better-sqlite3/mac-x64-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
13-
1412
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
1513

1614
echo "Packaging mac x64 electron build"

bin/build-server.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ rm -r $PKG_DIR/node_modules/electron*
2323
rm -r $PKG_DIR/webpack*
2424
rm -r $PKG_DIR/electron.js
2525

26-
cp -r bin/better-sqlite3/linux-server-better_sqlite3.node $PKG_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
27-
2826
printf "#!/bin/sh\n./node/bin/node src/www" > $PKG_DIR/trilium.sh
2927
chmod 755 $PKG_DIR/trilium.sh
3028

bin/build-win-x64.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ then
1212
./bin/copy-trilium.sh $SRC_DIR
1313
fi
1414

15-
echo "Copying required windows binaries"
16-
17-
cp -r bin/better-sqlite3/win-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
18-
1915
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
2016

2117
echo "Packaging windows x64 electron build"

0 commit comments

Comments
 (0)