mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Merge remote-tracking branch 'origin/master' into next58
This commit is contained in:
commit
e3047ee450
@ -30,7 +30,7 @@ cp bin/tpl/anonymize-database.sql $BUILD_DIR/
|
|||||||
cp -r dump-db $BUILD_DIR/
|
cp -r dump-db $BUILD_DIR/
|
||||||
rm -rf $BUILD_DIR/dump-db/node_modules
|
rm -rf $BUILD_DIR/dump-db/node_modules
|
||||||
|
|
||||||
cp bin/tpl/trilium-{portable,no-cert-check,safe-mode}.{bat,ps1} $BUILD_DIR/
|
cp bin/tpl/trilium-{portable,no-cert-check,safe-mode}.bat $BUILD_DIR/
|
||||||
|
|
||||||
echo "Zipping windows x64 electron distribution..."
|
echo "Zipping windows x64 electron distribution..."
|
||||||
VERSION=`jq -r ".version" package.json`
|
VERSION=`jq -r ".version" package.json`
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
|
@echo off
|
||||||
|
:: Try to get powershell to launch Trilium since it deals with UTF-8 characters in current path
|
||||||
|
:: If there's no powershell available, fallback to unicode enabled command interpreter
|
||||||
|
|
||||||
|
WHERE powershell.exe > NUL 2>&1
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO BATCH ELSE GOTO POWERSHELL
|
||||||
|
|
||||||
|
:POWERSHELL
|
||||||
|
powershell -ExecutionPolicy Bypass -NonInteractive -NoLogo "Set-Item -Path Env:NODE_TLS_REJECT_UNAUTHORIZED -Value 0; ./trilium.exe"
|
||||||
|
GOTO END
|
||||||
|
|
||||||
|
:BATCH
|
||||||
|
:: Make sure we support UTF-8 characters
|
||||||
|
chcp 65001
|
||||||
|
|
||||||
|
:: Get Current Trilium executable directory and compute data directory
|
||||||
SET DIR=%~dp0
|
SET DIR=%~dp0
|
||||||
set NODE_TLS_REJECT_UNAUTHORIZED=0
|
set NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||||
cd %DIR%
|
cd %DIR%
|
||||||
WHERE powershell.exe
|
start trilium.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 (start trilium.exe) ELSE (powershell.exe ./trilium-no-cert-check.ps1)
|
GOTO END
|
||||||
|
|
||||||
|
:END
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
Set-Item -Path Env:NODE_TLS_REJECT_UNAUTHORIZED -Value 0
|
|
||||||
./trilium.exe
|
|
@ -1,5 +1,23 @@
|
|||||||
|
@echo off
|
||||||
|
:: Try to get powershell to launch Trilium since it deals with UTF-8 characters in current path
|
||||||
|
:: If there's no powershell available, fallback to unicode enabled command interpreter
|
||||||
|
|
||||||
|
WHERE powershell.exe > NUL 2>&1
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO BATCH ELSE GOTO POWERSHELL
|
||||||
|
|
||||||
|
:POWERSHELL
|
||||||
|
powershell -ExecutionPolicy Bypass -NonInteractive -NoLogo "Set-Item -Path Env:TRILIUM_DATA_DIR -Value './trilium-data'; ./trilium.exe"
|
||||||
|
GOTO END
|
||||||
|
|
||||||
|
:BATCH
|
||||||
|
:: Make sure we support UTF-8 characters
|
||||||
|
chcp 65001
|
||||||
|
|
||||||
|
:: Get Current Trilium executable directory and compute data directory
|
||||||
SET DIR=%~dp0
|
SET DIR=%~dp0
|
||||||
SET TRILIUM_DATA_DIR=%DIR%\trilium-data
|
SET TRILIUM_DATA_DIR=%DIR%\trilium-data
|
||||||
cd %DIR%
|
cd %DIR%
|
||||||
WHERE powershell.exe
|
start trilium.exe
|
||||||
IF %ERRORLEVEL% NEQ 0 (start trilium.exe) ELSE (powershell.exe ./trilium-portable.ps1)
|
GOTO END
|
||||||
|
|
||||||
|
:END
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
Set-Item -Path Env:TRILIUM_DATA_DIR -Value './trilium-data'
|
|
||||||
./trilium.exe
|
|
@ -1,5 +1,23 @@
|
|||||||
|
@echo off
|
||||||
|
:: Try to get powershell to launch Trilium since it deals with UTF-8 characters in current path
|
||||||
|
:: If there's no powershell available, fallback to unicode enabled command interpreter
|
||||||
|
|
||||||
|
WHERE powershell.exe > NUL 2>&1
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO BATCH ELSE GOTO POWERSHELL
|
||||||
|
|
||||||
|
:POWERSHELL
|
||||||
|
powershell -ExecutionPolicy Bypass -NonInteractive -NoLogo "Set-Item -Path Env:TRILIUM_SAFE_MODE -Value 1; ./trilium.exe --disable-gpu"
|
||||||
|
GOTO END
|
||||||
|
|
||||||
|
:BATCH
|
||||||
|
:: Make sure we support UTF-8 characters
|
||||||
|
chcp 65001
|
||||||
|
|
||||||
|
:: Get Current Trilium executable directory and compute data directory
|
||||||
SET DIR=%~dp0
|
SET DIR=%~dp0
|
||||||
SET TRILIUM_SAFE_MODE=1
|
SET TRILIUM_SAFE_MODE=1
|
||||||
cd %DIR%
|
cd %DIR%
|
||||||
WHERE powershell.exe
|
start trilium.exe --disable-gpu
|
||||||
IF %ERRORLEVEL% NEQ 0 (start trilium.exe --disable-gpu) ELSE (powershell.exe ./trilium-safe-mode.ps1)
|
GOTO END
|
||||||
|
|
||||||
|
:END
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
Set-Item -Path Env:TRILIUM_SAFE_MODE -Value 1
|
|
||||||
./trilium.exe --disable-gpu
|
|
Loading…
x
Reference in New Issue
Block a user