markmap/start.bat
2026-08-12 16:54:48 +08:00

44 lines
884 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul 2>&1
title Markmap 编辑器
echo.
echo Markmap 编辑器 - 本地服务器
echo.
REM 尝试用 Python 启动服务器
python --version >nul 2>&1
if %errorlevel% == 0 (
echo 正在使用 Python 启动服务器...
echo.
python serve.py 8080
goto :end
)
REM 尝试用 Python3 启动服务器
python3 --version >nul 2>&1
if %errorlevel% == 0 (
echo 正在使用 Python3 启动服务器...
echo.
python3 serve.py 8080
goto :end
)
REM 尝试用 py 启动服务器
py --version >nul 2>&1
if %errorlevel% == 0 (
echo 正在使用 py 启动服务器...
echo.
py serve.py 8080
goto :end
)
echo [错误] 未找到 Python请先安装 Python 3.x
echo 下载地址: https://www.python.org/downloads/
echo.
echo 或者直接用浏览器打开 index.html部分功能可能受限
echo.
pause
:end