diff --git a/install/ubuntu-1604.sh b/install/ubuntu-1604.sh index f72dc985c..ca51e429a 100644 --- a/install/ubuntu-1604.sh +++ b/install/ubuntu-1604.sh @@ -2,7 +2,7 @@ name=xenial echo "Running Hydro Installer for ubuntu 16.04" echo "此脚本已不再维护,推荐使用新版安装工具:" -echo "wget https://s3.undefined.moe/public/install -O install && chmod +x install && ./install" +echo "LANG=zh bash <(curl https://hydro.ac/install.sh)" echo "详情请参阅文档 -> https://hydro.js.org" echo "使用 Ctrl-C 退出该脚本,或是等待十秒后继续。" echo "Will continue installation in 10 secs, press Ctrl-C to exit" diff --git a/install/ubuntu-1804.sh b/install/ubuntu-1804.sh index 1d8bd39cd..a52d2c74f 100644 --- a/install/ubuntu-1804.sh +++ b/install/ubuntu-1804.sh @@ -2,7 +2,7 @@ name=bionic echo "Running Hydro Installer for ubuntu 18.04" echo "此脚本已不再维护,推荐使用新版安装工具:" -echo "wget https://s3.undefined.moe/public/install -O install && chmod +x install && ./install" +echo "LANG=zh bash <(curl https://hydro.ac/install.sh)" echo "详情请参阅文档 -> https://hydro.js.org" echo "使用 Ctrl-C 退出该脚本,或是等待十秒后继续。" echo "Will continue installation in 10 secs, press Ctrl-C to exit" diff --git a/install/ubuntu-2004.sh b/install/ubuntu-2004.sh index 3583be4ba..670149652 100644 --- a/install/ubuntu-2004.sh +++ b/install/ubuntu-2004.sh @@ -2,7 +2,7 @@ name=focal echo "Running Hydro Installer for ubuntu 20.04" echo "此脚本已不再维护,推荐使用新版安装工具:" -echo "wget https://s3.undefined.moe/public/install -O install && chmod +x install && ./install" +echo "LANG=zh bash <(curl https://hydro.ac/install.sh)" echo "详情请参阅文档 -> https://hydro.js.org" echo "使用 Ctrl-C 退出该脚本,或是等待十秒后继续。" echo "Will continue installation in 10 secs, press Ctrl-C to exit" diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index aaad4fb75..b3e940970 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "3.15.6", + "version": "3.15.7", "bin": "bin/hydrooj.js", "main": "src/loader", "module": "src/loader", diff --git a/packages/hydrooj/setting.yaml b/packages/hydrooj/setting.yaml index d356e3785..176798b2f 100644 --- a/packages/hydrooj/setting.yaml +++ b/packages/hydrooj/setting.yaml @@ -51,17 +51,29 @@ langs: highlight: cpp monaco: cpp display: C++ - cc.std98: + cc.cc98: compile: /usr/bin/g++ -Wall -std=c++98 -o foo foo.cc -lm - display: C++ 98 - cc.std11: + display: C++98 + cc.cc98o2: + compile: /usr/bin/g++ -Wall -std=c++98 -o foo foo.cc -lm -O2 + display: C++98(O2) + cc.cc11: compile: /usr/bin/g++ -Wall -std=c++11 -o foo foo.cc -lm - display: C++ 11 - cc.std14: - display: C++ 14 - cc.std17: + display: C++11 + cc.cc11o2: + compile: /usr/bin/g++ -Wall -std=c++11 -o foo foo.cc -lm -O2 + display: C++11(O2) + cc.cc14: + display: C++14 + cc.cc14o2: + compile: /usr/bin/g++ -Wall -std=c++14 -o foo foo.cc -lm -O2 + display: C++14(O2) + cc.cc17: compile: /usr/bin/g++ -Wall -std=c++17 -o foo foo.cc -lm - display: C++ 17 + display: C++17 + cc.cc17o2: + compile: /usr/bin/g++ -Wall -std=c++17 -o foo foo.cc -lm -O2 + display: C++17(O2) pas: compile: /usr/bin/fpc -O2 -o/w/foo foo.pas highlight: pascal