Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(windows script): add -command flag
Ryan Keane1a68bdfe0266
diff --git a/apps/desktop/electron-forge/trilium-no-cert-check.bat b/apps/desktop/electron-forge/trilium-no-cert-check.batindex cfc345c42c..d3405b4979 100644--- a/apps/desktop/electron-forge/trilium-no-cert-check.bat+++ b/apps/desktop/electron-forge/trilium-no-cert-check.bat@@ -6,7 +6,7 @@ WHERE powershell.exe > NUL 2>&1IF %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"+powershell -ExecutionPolicy Bypass -NonInteractive -NoLogo -Command "Set-Item -Path Env:NODE_TLS_REJECT_UNAUTHORIZED -Value 0; ./trilium.exe"GOTO END:BATCHdiff --git a/apps/desktop/electron-forge/trilium-portable.bat b/apps/desktop/electron-forge/trilium-portable.batindex b6eeb853f5..5b71c9cf2a 100644--- a/apps/desktop/electron-forge/trilium-portable.bat+++ b/apps/desktop/electron-forge/trilium-portable.bat@@ -6,7 +6,7 @@ WHERE powershell.exe > NUL 2>&1IF %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"+powershell -ExecutionPolicy Bypass -NonInteractive -NoLogo -Command "Set-Item -Path Env:TRILIUM_DATA_DIR -Value './trilium-data'; ./trilium.exe"GOTO END:BATCHdiff --git a/apps/desktop/electron-forge/trilium-safe-mode.bat b/apps/desktop/electron-forge/trilium-safe-mode.batindex 7e0fafa991..e112896f75 100644--- a/apps/desktop/electron-forge/trilium-safe-mode.bat+++ b/apps/desktop/electron-forge/trilium-safe-mode.bat@@ -6,7 +6,7 @@ WHERE powershell.exe > NUL 2>&1IF %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"+powershell -ExecutionPolicy Bypass -NonInteractive -NoLogo -Command "Set-Item -Path Env:TRILIUM_SAFE_MODE -Value 1; ./trilium.exe --disable-gpu"GOTO END:BATCH