build.sh : Download Golang via Source from now on

This commit is contained in:
unknown 2022-11-29 22:08:09 +07:00
parent 3258a5ff5f
commit 1d25a25e42
Signed by: minoplhy
GPG Key ID: 90667A59A9908AEC
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,14 @@ cd ~/
rm -rf nginquic rm -rf nginquic
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/packages.sh | bash curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/packages.sh | bash
mkdir nginquic && cd nginquic 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 hg clone -b quic https://hg.nginx.org/nginx-quic
git clone --depth=1 https://github.com/google/boringssl git clone --depth=1 https://github.com/google/boringssl
cd boringssl cd boringssl

View File

@ -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