Skip to content

Commit

Permalink
docs: 更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmx committed Sep 20, 2021
1 parent 48a9785 commit dfe2096
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,38 @@

登录逻辑来自 https://github.com/coffeehat/BIT-srun-login-script

首次运行将生成Config.json文件
## :hammer_and_wrench:构建

建议安装使用最新版golang

直接编译本系统可执行程序:

```shell
go build
```

交叉编译(Linux):

```shell
export GOGGC=0
export GOOS=windows #系统
export GOARCH=amd64 #架构
go build
```

golang支持的系统与架构请自行查询

## :hammer_and_wrench:运行

编译结果为可执行文件,直接启动即可

可以通过添加启动参数`--config`指定配置文件路径,默认为当前目录

```shell
./autoLogin --config=/demo/i.json
```

首次运行将自动生成配置文件

Config.json说明:

Expand Down

0 comments on commit dfe2096

Please sign in to comment.