Fix build image once

Also fix build on Windows message:
```
docker: Error response from daemon: the working directory 'C:/Program Files/Git/src' is invalid, it needs to be an absolute path
```
This commit is contained in:
Meng Zhuo committed 2026-01-30 09:40:36 +08:00
1 parent d3b985c5ad
commit 9ab8040e4b
1 file changed
+5 -2
+5 -2
View File
@@ -31,13 +31,16 @@ fi
# ---------------------------------------------
# Build the Docker image (only needed once)
# ---------------------------------------------
docker build -t "$IMAGE" .
if [[ "$(docker images -q $IMAGE)" == "" ]]; then
echo "Building Docker image..."
docker build -t "$IMAGE" .
fi
# ---------------------------------------------
# Clean existing CMake cache to ensure toolchain reload
# ---------------------------------------------
rm -rf build
export MSYS_NO_PATHCONV=1
# ---------------------------------------------
# Function to build one preset
# ---------------------------------------------