编译安装低版本的vapor toolbox

不想升级到最新版本的系统,寻找当前系统下安装vapor的方法。

什么是vapor

https://docs.vapor.codes/zh/getting-started/hello-world/

当前系统环境:

macos: 12.3.1

swift: 5.6.1

下载支持swift5.5版本的vapor toolbox源码

https://github.com/vapor/toolbox/releases

https://github.com/vapor/toolbox/archive/refs/tags/18.7.1.tar.gz

make编译总是失败,于是手工编译

双击Swift.package打开工程,等待所有包更新完成,然后打包发布。

显示包内容,在Products文件夹里找到vapor文件,拷贝到/usr/local/bin/即可。

 

posted @ 2025-08-10 16:33  大强跑了  阅读(7)  评论(0)    收藏  举报