diff --git a/README.md b/README.md index 685bf5d..e82de7f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# g +# gvm ![GitHub release (latest by date)](https://img.shields.io/github/v/release/voidint/g) [![GoDoc](https://godoc.org/github.com/voidint/g?status.svg)](https://godoc.org/github.com/voidint/g) @@ -10,7 +10,7 @@ **Note:** The master branch may still be under development and may not represent a stable version. Please download stable versions of the source code through tags or download compiled binary executables through [release](https://github.com/voidint/g/releases). -`g` is a command-line tool for Linux, macOS, and Windows that provides convenient management and switching of multiple versions of the [Go](https://golang.org/) environment. +`gvm` is a command-line tool for Linux, macOS, and Windows that provides convenient management and switching of multiple versions of the [Go](https://golang.org/) environment. [![asciicast](https://asciinema.org/a/356685.svg)](https://asciinema.org/a/356685) @@ -104,7 +104,7 @@ To install a specific version of Go (e.g., 1.20.5): ```shell $ g install 1.14.7 -Downloading 100% [===============] (92/92 MB, 12 MB/s) +Downloading 100% [===============] (92/92 MB, 12 MB/s) Computing checksum with SHA256 Checksums matched Now using go1.20.5 @@ -126,7 +126,7 @@ $ g ls-remote 1.2.2 1.3 1.3.1 - ... + ... 1.19.10 1.20rc1 1.20rc2 @@ -156,7 +156,7 @@ Uninstalled go1.19.10 To clear the package file cache for Go installations: ```shell -$ g clean +$ g clean Remove go1.18.10.darwin-arm64.tar.gz Remove go1.19.10.darwin-arm64.tar.gz Remove go1.20.5.darwin-arm64.tar.gz @@ -225,7 +225,7 @@ Remove /Users/voidint/.g - After installing a go version using g, when running the `go version` command, the output shows a different version than the one installed. Is this a bug? This is likely due to an incorrect setting of the `PATH` environment variable in the current shell environment (it is recommended to run `which go` to see the path of the go binary file). By default, the path to the go binary file should be `~/.g/go/bin/go`. If it is not this path, it means that the PATH environment variable is set incorrectly. - + - Does g support compiling and installing from source code? No, it does not support compiling and installing from source code. diff --git a/README_CN.md b/README_CN.md index 673bfbc..d324586 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,4 +1,4 @@ -# g +# gvm ![GitHub release (latest by date)](https://img.shields.io/github/v/release/voidint/g) [![GoDoc](https://godoc.org/github.com/voidint/g?status.svg)](https://godoc.org/github.com/voidint/g) @@ -104,7 +104,7 @@ $ g ls-remote stable ```shell $ g install 1.14.7 -Downloading 100% [===============] (92/92 MB, 12 MB/s) +Downloading 100% [===============] (92/92 MB, 12 MB/s) Computing checksum with SHA256 Checksums matched Now using go1.20.5 @@ -156,7 +156,7 @@ Uninstalled go1.19.10 清空 go 安装包文件缓存 ```shell -$ g clean +$ g clean Remove go1.18.10.darwin-arm64.tar.gz Remove go1.19.10.darwin-arm64.tar.gz Remove go1.20.5.darwin-arm64.tar.gz @@ -225,7 +225,7 @@ Remove /Users/voidint/.g - 使用 g 安装了某个 go 版本后,执行`go version`命令,但输出的 go 版本号并非是所安装的那个版本,这是不是 bug ? 由于当前 shell 环境中`PATH`环境变量设置有误导致(建议执行`which go`查看二进制文件所在路径)。在未修改 g 家目录的情况下,二进制文件 go 的路径应该是`~/.g/go/bin/go`,如果不是这个路径,就说明`PATH`环境变量设置有误。 - + - 支持源代码编译安装吗? 不支持 diff --git a/package.sh b/package.sh index 21248ad..8236a74 100755 --- a/package.sh +++ b/package.sh @@ -30,7 +30,7 @@ function get_os() { } function package() { - printf "============Pakcage for %s============\n" $2 + printf "============Package for %s============\n" $2 local release=${1} local osarch=(${2//_/ }) local os=${osarch[0]}