From 1d25a25e4211efc0bcb826815ee31fc20bb4287c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Nov 2022 22:08:09 +0700 Subject: [PATCH] build.sh : Download Golang via Source from now on --- build.sh | 8 ++++++++ packages.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index c713226..23cbe42 100644 --- a/build.sh +++ b/build.sh @@ -2,6 +2,14 @@ cd ~/ rm -rf nginquic curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/packages.sh | bash mkdir nginquic && cd nginquic + +# Install Golang +unlink /usr/bin/go +wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz +rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz +export PATH=$PATH:/usr/local/go/bin +ln -s /usr/local/go/bin /usr/bin/go + hg clone -b quic https://hg.nginx.org/nginx-quic git clone --depth=1 https://github.com/google/boringssl cd boringssl diff --git a/packages.sh b/packages.sh index c7b389f..d038421 100644 --- a/packages.sh +++ b/packages.sh @@ -1 +1 @@ -sudo apt-get install mercurial golang libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev libgeoip-dev git -y +sudo apt-get install mercurial libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev libgeoip-dev git c++ -y