2 Star 7 Fork 10

agoraio-community/API-Examples

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
.download_script.sh 675 Bytes
Copy Edit Raw Blame History
cleven_zhao authored 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_iOS_v${version}_FULL.zip"
# https://download.agora.io/sdk/release/Agora_Native_SDK_for_iOS_v4.3.0_VOICE.zip
zip_filename=$(basename "$url")
./.download_ijkplayer.sh
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

Search