You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
496 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

@echo off
REM Windows编译命令行版本脚本
echo 正在编译命令行版本...
REM 创建输出目录
if not exist bin mkdir bin
REM 编译命令行版本不包含WebSocket相关类
javac -d bin -encoding UTF-8 src/common/Message.java src/common/MessageType.java src/server/ChatServer.java src/server/ClientHandler.java src/client/ChatClient.java
if %errorlevel% equ 0 (
echo √ 编译成功!
echo 输出目录: bin/
) else (
echo X 编译失败!
exit /b 1
)