Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu authored May 28, 2024
1 parent 9985c87 commit d389cc0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

<img src=".github/hksplitmaker.png" alt=""/>

## 使用前请检查版本号
> [!Note]
> 本项目只能在Windows环境下运行。
使用前打开LiveSplit -> 右键 -> Edit Splits -> Settings,如果在插件设置界面看不到版本号,或者看到的版本号低于本程序的版本号,那么生成出来的文件不一定能够生效。
如何升级LiveSplit的空洞骑士插件?一般情况下,打开LiveSplit时就会提示更新。如果没有提示更新,可以直接点,并覆盖到LiveSplit的安装目录下的`Components`文件夹中即可
## 一键更新LiveSplit的空洞骑士Auto Splitter插件

关闭LiveSplit,运行`hksplitmaker.exe`,点击右上角的`更新LiveSplit`按钮,按照接下来的提示操作即可

## 如何使用

Expand All @@ -34,7 +35,7 @@

## 编译说明

**根据自己的操作系统,直接运行`build.bat``build.sh`即可进行编译。**
**根据自己的编译环境,运行`build.bat``build.sh`即可进行编译。**

如果想要自己使用`go build`进行编译,需要提前下载两个文件:

Expand All @@ -43,7 +44,7 @@ curl -O https://raw.githubusercontent.com/LiveSplit/LiveSplit.AutoSplitters/mast
curl -O https://raw.githubusercontent.com/ShootMe/LiveSplit.HollowKnight/master/Components/LiveSplit.HollowKnight.dll

# -ldflags中,-s是去掉符号表,-w是去掉调试信息,均可减小所生成二进制文件的体积
# -H=windowsgui是打开Windows窗口时隐藏控制台的黑框框
# -H=windowsgui是打开Windows窗口时隐藏控制台的黑框框
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -H=windowsgui" -o hksplitmaker.exe
```

Expand Down

0 comments on commit d389cc0

Please sign in to comment.