====== 编译 ====== ===== 支持的平台 ===== * Microsoft Windows (x86, x86-64) * Debian Linux (x86, x86-64, ARM, MIPS, Loongson ISA) * Apple macOS (x86-64) ===== Microsoft Windows ===== ==== 依赖 ==== 1. [[https://github.com/brechtsanders/winlibs_mingw/releases/download/10.2.0-11.0.0-8.0.0-r7/winlibs-x86_64-posix-seh-gcc-10.2.0-llvm-11.0.0-mingw-w64-8.0.0-r7.zip|MinGW-w64(需要配置以下依赖)]] 或 * [[http://covscript.org.cn/gcc-10.2.0-mingw-w64-8.0.0-r8-covscript.org.zip|已经打包好库依赖的MinGW-w64]] * [[https://curl.se/windows/dl-7.75.0_2/curl-7.75.0_2-win64-mingw.zip|libcurl]] * [[https://curl.se/windows/dl-7.75.0_2/brotli-1.0.9_2-win64-mingw.zip|libbrotli]] * [[https://curl.se/windows/dl-7.75.0_2/libssh2-1.9.0_2-win64-mingw.zip|libssh2]] * [[https://curl.se/windows/dl-7.75.0_2/nghttp2-1.43.0_2-win64-mingw.zip|libnghttp2]] * [[https://curl.se/windows/dl-7.75.0_2/zlib-1.2.11_2-win64-mingw.zip|libz]] * [[https://curl.se/windows/dl-7.75.0_2/zstd-1.4.8_2-win64-mingw.zip|libzstd]] * [[https://github.com/glfw/glfw/releases/download/3.3.2/glfw-3.3.2.bin.WIN64.zip|libglfw3]] 2. [[https://git-scm.com/|Git on Windows]] 3. [[https://www.7-zip.org/|7-Zip]] 4. [[https://cmake.org/|CMake]] ==== 准备 === 1. 确保您的计算机有至少 4 核 2.0 GHz 以上的处理器以及至少 8 GB 内存 2. 检查你的网络连接,需要能够正常访问 **[[https://github.com/]]**,国内用户请酌情使用代理加速 3. 克隆 https://github.com/covscript/csbuild 到本地,如本地已经存在请使用 ''git pull'' 更新到最新版本 4. 进入''sign_tools''文件夹,执行''gen.bat''生成证书,不要设置密码,留空即可 5. 将上一步配置好的依赖全部加入到''PATH''环境变量中 ==== 编译 ==== 进入''win_tools''文件夹,按照 step1 -> step2 -> step3 -> step4 的顺序依次执行,进入到下一步前需确保前一步已经完成。执行完毕后,就可以在''win_tools/builds''中找到编译完成的 CovScript 工具链了