Ai
2 Star 10 Fork 12

agoraio-community/API-Examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.download_script.sh 565 Bytes
一键复制 编辑 原始数据 按行查看 历史
cleven_zhao 提交于 2024-04-29 11:26 +08:00 . Dev/4.3.1 (#375)
#!/bin/bash
version=$1
url="https://download.agora.io/sdk/release/Agora_Native_SDK_for_Mac_v${version}_FULL.zip"
zip_filename=$(basename "$url")
if [ -d "libs" ] && [ "$2" = "false" ]; then
echo "Folder exists"
exit;
fi
rm -rf libs
# 使用curl命令下载文件
echo 'download Agora RTC SDK...'
curl -o "$zip_filename" "$url"
unzip $zip_filename
folder_name=$(unzip -qql $zip_filename | head -n1 | tr -s ' ' | cut -d' ' -f5-) # 获取文件夹名称
mv "${folder_name}libs" .
rm -rf $zip_filename
rm -rf $folder_name
echo "download sdk finished!"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/agoraio-community/API-Examples.git
git@gitee.com:agoraio-community/API-Examples.git
agoraio-community
API-Examples
API-Examples
main

搜索帮助