FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API-Examples/iOS/APIExample-OC/.download_script.sh at main · genMY/API-Examples · GitHub
genMY
/
API-Examples
Public
forked from
AgoraIO/API-Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
API-Examples
/
iOS
/
APIExample-OC
/
.download_script.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (19 loc) · 647 Bytes
Breadcrumbs
API-Examples
/
iOS
/
APIExample-OC
/
.download_script.sh
Copy path
File metadata and controls
executable file
·
26 lines (19 loc) · 647 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!
/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
"
)
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!
"
Back
|
FazBrowse Home
|
New Git URL