修复mkworld编译异常的问题

先前直接Build时,会出现:`../../osdep/OSUtils.hpp:46:10: fatal error: nlohmann/json.hpp: No such file or directory` 的问题,造成最后并没有编译出正确的planet的问题;
此外,直接使用 wget 往 `/usr/include` 下塞东西确实不够优雅,但是不知道为啥 `apt install nlohmann-json-dev` 是 missing 的,考虑到这块后续也不会有啥变化,就是用了这种比较简单直接的方式
This commit is contained in:
韩翔宇 2022-06-23 07:44:43 +08:00 committed by GitHub
parent c8f9c09b0a
commit 9a16916925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,11 @@ dpkg-reconfigure --frontend noninteractive tzdata
rm -rf /var/lib/apt/lists/*
apt update
apt install git python3 npm make curl -y
apt install git python3 npm make curl wget -y
mkdir /usr/include/nlohmann/
cd /usr/include/nlohmann/ && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp
npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp
curl -s https://install.zerotier.com | bash
cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git