Skip to content

Commit c0a8197

Browse files
committed
update
1 parent 8a8aa21 commit c0a8197

26 files changed

+45
-31
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _testmain.go
3636
device.json
3737
Go-Mirai-Client
3838
device-*.json
39-
static/static
39+
pkg/static/static
4040
gmc-*.zip
4141
captcha.jpg
4242
/video

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ WORKDIR /build
1919

2020
COPY ./ .
2121

22-
COPY --from=ui_builder /build/pbbot-react-ui/build ./static/static
22+
COPY --from=ui_builder /build/pbbot-react-ui/build ./pkg/static/static
2323

2424
RUN cd /build \
25-
&& go build -ldflags "-s -w -extldflags '-static'" -o gmc
25+
&& go build -ldflags "-s -w -extldflags '-static'" -o gmc ./service/gmc
2626

2727
FROM alpine:latest
2828

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for PLATFORM in $PLATFORMS; do
2626
GOARCH=${PLATFORM#*/}
2727
BIN_FILENAME="${OUTPUT_DIR}/${NAME}-${GOOS}-${GOARCH}"
2828
if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi
29-
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \"-s -w -extldflags '-static'\" -o ${BIN_FILENAME}"
29+
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \"-s -w -extldflags '-static'\" -o ${BIN_FILENAME} github.com/ProtobufBot/Go-Mirai-Client/service/gmc"
3030
echo $CMD
3131
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
3232
done
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
_ "unsafe"
88

99

10-
"github.com/ProtobufBot/Go-Mirai-Client/config"
10+
"github.com/ProtobufBot/Go-Mirai-Client/pkg/cache"
1111
"github.com/ProtobufBot/Go-Mirai-Client/pkg/clz"
12+
"github.com/ProtobufBot/Go-Mirai-Client/pkg/config"
1213
"github.com/ProtobufBot/Go-Mirai-Client/proto_gen/onebot"
13-
"github.com/ProtobufBot/Go-Mirai-Client/service/cache"
1414

1515
"github.com/Mrs4s/MiraiGo/client"
1616
"github.com/Mrs4s/MiraiGo/message"
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/ProtobufBot/Go-Mirai-Client/config"
9+
"github.com/ProtobufBot/Go-Mirai-Client/pkg/config"
1010
"github.com/ProtobufBot/Go-Mirai-Client/pkg/util"
1111
"github.com/ProtobufBot/Go-Mirai-Client/proto_gen/dto"
1212

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package bot
33
import (
44
"strconv"
55

6-
"github.com/Mrs4s/MiraiGo/client"
7-
"github.com/Mrs4s/MiraiGo/message"
86
"github.com/ProtobufBot/Go-Mirai-Client/pkg/clz"
97
"github.com/ProtobufBot/Go-Mirai-Client/proto_gen/onebot"
8+
9+
"github.com/Mrs4s/MiraiGo/client"
10+
"github.com/Mrs4s/MiraiGo/message"
1011
)
1112

1213
func MiraiMsgToProtoMsg(cli *client.QQClient, messageChain []message.IMessageElement) []*onebot.Message {

0 commit comments

Comments
 (0)