Skip to content

Commit 6a70e0a

Browse files
committed
add trilium-no-cert-check bat/shell file in order to be able to connect to the sync server even without valid server certificate
1 parent b38a63d commit 6a70e0a

6 files changed

+18
-3
lines changed

bin/build-linux-x64.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ cp images/app-icons/png/128x128.png $BUILD_DIR/icon.png
2727
# removing software WebGL binaries because they are pretty huge and not necessary
2828
rm -r $BUILD_DIR/swiftshader
2929

30-
cp bin/tpl/portable-trilium.sh $BUILD_DIR/
31-
chmod 755 $BUILD_DIR/portable-trilium.sh
30+
cp bin/tpl/trilium-portable.sh $BUILD_DIR/
31+
chmod 755 $BUILD_DIR/trilium-portable.sh
32+
33+
cp bin/tpl/trilium-no-cert-check.sh $BUILD_DIR/
34+
chmod 755 $BUILD_DIR/trilium-no-cert-check.sh
3235

3336
echo "Packaging linux x64 electron distribution..."
3437
VERSION=`jq -r ".version" package.json`

bin/build-win-x64.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ mv "./dist/Trilium Notes-win32-x64" $BUILD_DIR
2525
# removing software WebGL binaries because they are pretty huge and not necessary
2626
rm -r $BUILD_DIR/swiftshader
2727

28-
cp bin/tpl/portable-trilium.bat $BUILD_DIR/
28+
cp bin/tpl/trilium-portable.bat $BUILD_DIR/
29+
cp bin/tpl/trilium-no-cert-check.bat $BUILD_DIR/
2930

3031
echo "Zipping windows x64 electron distribution..."
3132
VERSION=`jq -r ".version" package.json`

bin/tpl/trilium-no-cert-check.bat

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SET DIR=%~dp0
2+
set NODE_TLS_REJECT_UNAUTHORIZED=0
3+
cd %DIR%
4+
start trilium.exe

bin/tpl/trilium-no-cert-check.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env sh
2+
3+
DIR=`dirname "$0"`
4+
export NODE_TLS_REJECT_UNAUTHORIZED=0
5+
6+
"$DIR/trilium"
7+
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)