diff --git a/bin/build-linux-x64.sh b/bin/build-linux-x64.sh index 064105492..39baae922 100755 --- a/bin/build-linux-x64.sh +++ b/bin/build-linux-x64.sh @@ -27,8 +27,11 @@ cp images/app-icons/png/128x128.png $BUILD_DIR/icon.png # removing software WebGL binaries because they are pretty huge and not necessary rm -r $BUILD_DIR/swiftshader -cp bin/tpl/portable-trilium.sh $BUILD_DIR/ -chmod 755 $BUILD_DIR/portable-trilium.sh +cp bin/tpl/trilium-portable.sh $BUILD_DIR/ +chmod 755 $BUILD_DIR/trilium-portable.sh + +cp bin/tpl/trilium-no-cert-check.sh $BUILD_DIR/ +chmod 755 $BUILD_DIR/trilium-no-cert-check.sh echo "Packaging linux x64 electron distribution..." VERSION=`jq -r ".version" package.json` diff --git a/bin/build-win-x64.sh b/bin/build-win-x64.sh index 172015767..bff3795ef 100755 --- a/bin/build-win-x64.sh +++ b/bin/build-win-x64.sh @@ -25,7 +25,8 @@ mv "./dist/Trilium Notes-win32-x64" $BUILD_DIR # removing software WebGL binaries because they are pretty huge and not necessary rm -r $BUILD_DIR/swiftshader -cp bin/tpl/portable-trilium.bat $BUILD_DIR/ +cp bin/tpl/trilium-portable.bat $BUILD_DIR/ +cp bin/tpl/trilium-no-cert-check.bat $BUILD_DIR/ echo "Zipping windows x64 electron distribution..." VERSION=`jq -r ".version" package.json` diff --git a/bin/tpl/trilium-no-cert-check.bat b/bin/tpl/trilium-no-cert-check.bat new file mode 100644 index 000000000..e10fa90ac --- /dev/null +++ b/bin/tpl/trilium-no-cert-check.bat @@ -0,0 +1,4 @@ +SET DIR=%~dp0 +set NODE_TLS_REJECT_UNAUTHORIZED=0 +cd %DIR% +start trilium.exe diff --git a/bin/tpl/trilium-no-cert-check.sh b/bin/tpl/trilium-no-cert-check.sh new file mode 100644 index 000000000..42ec8bb81 --- /dev/null +++ b/bin/tpl/trilium-no-cert-check.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +DIR=`dirname "$0"` +export NODE_TLS_REJECT_UNAUTHORIZED=0 + +"$DIR/trilium" + diff --git a/bin/tpl/portable-trilium.bat b/bin/tpl/trilium-portable.bat similarity index 100% rename from bin/tpl/portable-trilium.bat rename to bin/tpl/trilium-portable.bat diff --git a/bin/tpl/portable-trilium.sh b/bin/tpl/trilium-portable.sh similarity index 100% rename from bin/tpl/portable-trilium.sh rename to bin/tpl/trilium-portable.sh