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