Apply .gitignore rules
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 设置 Go 环境变量,确保使用 Linux 架构
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
|
||||
echo "开始编译..."
|
||||
|
||||
# 编译 Go 代码
|
||||
go build -o adminServer
|
||||
|
||||
# 检查编译是否成功
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "编译成功!"
|
||||
else
|
||||
echo "编译失败!"
|
||||
fi
|
||||
|
||||
# 等待用户输入任意键
|
||||
read -p "编译完成,按任意键继续..."
|
||||
exit 1
|
||||
Reference in New Issue
Block a user