mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-12-22 21:48:15 +08:00
docs(更新文档): 更新文档
This commit is contained in:
parent
521deaa963
commit
e2637b87b5
15
README.md
15
README.md
@ -22,4 +22,19 @@ export GOOS=android
|
||||
export GOARCH=arm64
|
||||
export CGO_ENABLED=1
|
||||
go build -o main_android_arm64 main.go
|
||||
```
|
||||
|
||||
# 编译项目
|
||||
|
||||
## 将项目文件映射到容器内部
|
||||
```bat
|
||||
docker run --rm -it -v %cd%:/go/src/app -w /go/src/app xiaoqidun/goenv
|
||||
```
|
||||
|
||||
## 在容器内执行命令进行编译
|
||||
```shell
|
||||
export GOOS=windows
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=0
|
||||
go build -o main_windows_amd64.exe main.go
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user