diff --git a/CMakeLists.txt b/CMakeLists.txt index d93e542..058ea70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ endmacro() set(VERSION "") git_tag(VERSION) if(VERSION STREQUAL "") # without git tag - message(FATAL_ERROR "Git command not found") + message(FATAL_ERROR "Unable to get version information") endif() ############################################################### diff --git a/README.md b/README.md index f8d6ef0..368cd8e 100644 --- a/README.md +++ b/README.md @@ -605,16 +605,20 @@ sys 0m0.005s ```bash $ git clone https://github.com/dnomd343/ClearDNS.git -··· $ cd ./ClearDNS/ $ docker build -t cleardns . -··· ``` ### 交叉构建 ```bash -docker buildx build -t dnomd343/cleardns --platform="linux/amd64,linux/arm64" https://github.com/dnomd343/ClearDNS.git --push +$ git clone https://github.com/dnomd343/ClearDNS.git +$ cd ./ClearDNS/ +$ docker buildx build + -t dnomd343/cleardns \ + -t ghcr.io/dnomd343/cleardns \ + -t registry.cn-shenzhen.aliyuncs.com/dnomd343/cleardns \ + --platform="linux/amd64,linux/arm64" . --push ``` ## 许可证