从源码编译
1. 设置 Godot 引擎编译环境
你可以参考这个教程来设置你自己的 Godot 引擎编译环境。相信我,这非常简单!绝对值得一试!
2. 克隆我们的项目
git clone https://github.com/qingfengzxr/gdscript-web3.git
3. 复制 web3 模块
将 web3 目录复制到 Godot 引擎项目的 modules 目录中。
cp -rf ~/gdscript-web3/modules/web3 ~/godot/modules
备注
不要忘记替换成你自己的路径
4. 安装 gmp 库
ubuntu:
sudo apt install libgmp-dev
也可以通过源码安装。参考:https://gmplib.org/
5. 编译 Godot 引擎
Linux:
scons platform=linuxbsd
MacOS:
scons platform=osx arch=arm64
Windows:
备注
TODO