mirror of
https://github.com/zadam/trilium.git
synced 2024-12-27 09:43:18 +08:00
added safe mode scripts
This commit is contained in:
parent
4d213300ac
commit
614b1bdbaf
4 changed files with 15 additions and 0 deletions
|
@ -30,6 +30,9 @@ rm -r $BUILD_DIR/swiftshader
|
|||
cp bin/tpl/trilium-portable.sh $BUILD_DIR/
|
||||
chmod 755 $BUILD_DIR/trilium-portable.sh
|
||||
|
||||
cp bin/tpl/trilium-safe-mode.sh $BUILD_DIR/
|
||||
chmod 755 $BUILD_DIR/trilium-safe-mode.sh
|
||||
|
||||
cp bin/tpl/trilium-no-cert-check.sh $BUILD_DIR/
|
||||
chmod 755 $BUILD_DIR/trilium-no-cert-check.sh
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ rm -r $BUILD_DIR/swiftshader
|
|||
|
||||
cp bin/tpl/trilium-portable.bat $BUILD_DIR/
|
||||
cp bin/tpl/trilium-no-cert-check.bat $BUILD_DIR/
|
||||
cp bin/tpl/trilium-safe-mode.bat $BUILD_DIR/
|
||||
|
||||
echo "Zipping windows x64 electron distribution..."
|
||||
VERSION=`jq -r ".version" package.json`
|
||||
|
|
4
bin/tpl/trilium-safe-mode.bat
Normal file
4
bin/tpl/trilium-safe-mode.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
SET DIR=%~dp0
|
||||
SET TRILIUM_SAFE_MODE=1
|
||||
cd %DIR%
|
||||
start trilium.exe
|
7
bin/tpl/trilium-safe-mode.sh
Normal file
7
bin/tpl/trilium-safe-mode.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
DIR=`dirname "$0"`
|
||||
export TRILIUM_SAFE_MODE=1
|
||||
|
||||
"$DIR/trilium"
|
||||
|
Loading…
Reference in a new issue