Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:construction_worker: Improve cd

Daniel665f2ee9b877
diff --git a/.gitattributes b/.gitattributes
index 31f11172e2..8ab7fe9a29 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,6 +1,8 @@
app/stage/protyle/** linguist-vendored
* text=auto
+*.bat text eol=crlf
+*.cmd text eol=crlf
*.json text eol=lf
*.scss text eol=lf
*.ts text eol=lf
diff --git a/app/package.json b/app/package.json
index cf8d3dedc7..300c37a4c3 100644
--- a/app/package.json
+++ b/app/package.json
@@ -93,5 +93,10 @@
},
"dependencies": {
"@electron/remote": "^2.1.3"
+ },
+ "pnpm": {
+ "overrides": {
+ "@electron/get": "3.0.0"
+ }
}
}
diff --git a/scripts/win-build.bat b/scripts/win-build.bat
index 9486ab5ca5..d44a6aa3d1 100755
--- a/scripts/win-build.bat
+++ b/scripts/win-build.bat
@@ -5,15 +5,15 @@ echo Options:
echo --target=^<target^> Build target: amd64, arm64, appx-amd64, appx-arm64, or all (default: all)
echo.
-REM 保存初始目录
+REM Save initial directory
set "INITIAL_DIR=%cd%"
-REM 获取脚本所在目录
+REM Get script directory
set "SCRIPT_DIR=%~dp0"
-REM 移除末尾的反斜杠
+REM Remove trailing backslash
if "%SCRIPT_DIR:~-1%"=="\" set "SCRIPT_DIR=%SCRIPT_DIR:~0,-1%"
-REM 获取项目根目录(脚本目录的父目录)
+REM Get project root (parent of script directory)
for %%I in ("%SCRIPT_DIR%\..") do set "PROJECT_ROOT=%%~fI"
set "TARGET=all"