FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API-Examples/windows/APIExample/install.ps1 at main · borderoflife/API-Examples · GitHub
borderoflife
/
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
/
windows
/
APIExample
/
install.ps1
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (38 loc) · 1.58 KB
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
install.ps1
Copy path
File metadata and controls
45 lines (38 loc) · 1.58 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$ThirdPartysrc
=
'
https://fullapp.oss-cn-beijing.aliyuncs.com/API-Examples/ThirdParty.zip
'
$ThirdPartydes
=
'
ThirdParty.zip
'
$agora_sdk
=
'
https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows_v4.4.0_FULL.zip
'
$agora_des
=
'
AgoraSdk.zip
'
$agora_local_sdk
=
'
../../sdk
'
if
(
-not
(
Test-Path
ThirdParty)){
echo
"
download
$ThirdPartydes
"
mkdir ThirdParty
(
New-Object
System.Net.WebClient).DownloadFile(
$ThirdPartySrc
,
$ThirdPartyDes
)
Unblock-File
$ThirdPartyDes
Expand-Archive
-
Path
$ThirdPartyDes
-
DestinationPath
'
ThirdParty
'
-
Force
Remove-Item
$ThirdPartyDes
-
Recurse
}
if
(
-not
(
Test-Path
sdk)){
if
(
Test-Path
$agora_local_sdk
){
mkdir sdk
mkdir sdk\x64
mkdir sdk\high_level_api
mkdir sdk\high_level_api\include
Copy-Item
$agora_local_sdk
\x86\
*
sdk
Copy-Item
$agora_local_sdk
\x86_64\
*
sdk\x64
Copy-Item
$agora_local_sdk
\high_level_api\include\
*
sdk\high_level_api\include
}
else
{
echo
"
download
$agora_des
"
mkdir sdk
mkdir sdk\x64
mkdir sdk\high_level_api
mkdir sdk\high_level_api\include
(
New-Object
System.Net.WebClient).DownloadFile(
$agora_sdk
,
$agora_des
)
Unblock-File
$agora_des
Expand-Archive
-
Path
$agora_des
-
DestinationPath
.
-
Force
Move-Item
Agora_Native_SDK_for_Windows_FULL\sdk\x86\
*
sdk
Move-Item
Agora_Native_SDK_for_Windows_FULL\sdk\x86_64\
*
sdk\x64
Move-Item
Agora_Native_SDK_for_Windows_FULL\sdk\high_level_api\include\
*
sdk\high_level_api\include
Remove-Item
$agora_des
-
Recurse
-
Force
Remove-Item
Agora_Native_SDK_for_Windows_FULL
-
Recurse
-
Force
}
}
Back
|
FazBrowse Home
|
New Git URL