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.

24 lines
503 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.

#!/bin/bash
# 编译命令行版本脚本
echo "正在编译命令行版本..."
# 创建输出目录
mkdir -p bin
# 编译命令行版本不包含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 [ $? -eq 0 ]; then
echo "✅ 编译成功!"
echo "输出目录: bin/"
else
echo "❌ 编译失败!"
exit 1
fi