diff --git a/README.md b/README.md index 60f53efd..a1682533 100644 --- a/README.md +++ b/README.md @@ -362,7 +362,7 @@ brew update brew install llvm@18 bdw-gc openssl cjson libffi pkg-config brew install python@3.12 # optional brew link --force libffi -go install -v github.com/goplus/llgo/cmd/llgo@latest +curl https://raw.githubusercontent.com/goplus/llgo/refs/heads/main/install.sh | bash ``` @@ -378,7 +378,7 @@ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get update sudo apt-get install -y llvm-18-dev clang-18 libclang-18-dev lld-18 pkg-config libgc-dev libssl-dev zlib1g-dev libcjson-dev libsqlite3-dev libunwind-dev sudo apt-get install -y python3.12-dev # optional -go install -v github.com/goplus/llgo/cmd/llgo@latest +curl https://raw.githubusercontent.com/goplus/llgo/refs/heads/main/install.sh | bash ``` #### Alpine Linux @@ -391,7 +391,7 @@ export LLVM_CONFIG=/usr/lib/llvm18/bin/llvm-config export CGO_CPPFLAGS="$($LLVM_CONFIG --cppflags)" export CGO_CXXFLAGS=-std=c++17 export CGO_LDFLAGS="$($LLVM_CONFIG --ldflags) $($LLVM_CONFIG --libs all)" -go install -v -tags=byollvm -ldflags="-X github.com/goplus/llgo/xtool/env/llvm.ldLLVMConfigBin=$LLVM_CONFIG" github.com/goplus/llgo/cmd/llgo@latest +curl https://raw.githubusercontent.com/goplus/llgo/refs/heads/main/install.sh | bash ``` ### on Windows diff --git a/doc/_readme/scripts/install_macos.sh b/doc/_readme/scripts/install_macos.sh index afa44c3c..3b889180 100644 --- a/doc/_readme/scripts/install_macos.sh +++ b/doc/_readme/scripts/install_macos.sh @@ -3,4 +3,4 @@ brew update brew install llvm@18 bdw-gc openssl cjson libffi pkg-config brew install python@3.12 # optional brew link --force libffi -go install -v github.com/goplus/llgo/cmd/llgo@latest +curl https://raw.githubusercontent.com/goplus/llgo/refs/heads/main/install.sh | bash diff --git a/doc/_readme/scripts/install_ubuntu.sh b/doc/_readme/scripts/install_ubuntu.sh index e749f237..24c00d03 100644 --- a/doc/_readme/scripts/install_ubuntu.sh +++ b/doc/_readme/scripts/install_ubuntu.sh @@ -4,4 +4,4 @@ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get update sudo apt-get install -y llvm-18-dev clang-18 libclang-18-dev lld-18 pkg-config libgc-dev libssl-dev zlib1g-dev libcjson-dev libsqlite3-dev libunwind-dev sudo apt-get install -y python3.12-dev # optional -go install -v github.com/goplus/llgo/cmd/llgo@latest \ No newline at end of file +curl https://raw.githubusercontent.com/goplus/llgo/refs/heads/main/install.sh | bash \ No newline at end of file