Skip to content

Commit 14d391c

Browse files
committed
win check apiexample script
1 parent 82b7e53 commit 14d391c

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cd /d %~dp0
2+
3+
powershell.exe -command ^
4+
"& {set-executionpolicy Remotesigned -Scope Process; ./'installCheck.ps1'}"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
$ThirdPartysrc = 'https://agora-adc-artifacts.oss-cn-beijing.aliyuncs.com/libs/ThirdParty.zip'
2+
$ThirdPartydes = 'ThirdParty.zip'
3+
$MediaPlayerSDK = 'https://download.agora.io/sdk/release/Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537.zip'
4+
$MediaPlayerDes = 'MediaPlayerPartSave.zip'
5+
6+
7+
if (-not (Test-Path ThirdParty)){
8+
echo "download $ThirdPartydes"
9+
mkdir ThirdParty
10+
Invoke-WebRequest -uri $ThirdPartySrc -OutFile $ThirdPartyDes -TimeoutSec 10;
11+
Unblock-File $ThirdPartyDes
12+
Expand-Archive -Path $ThirdPartyDes -DestinationPath 'ThirdParty' -Force
13+
Remove-Item $ThirdPartyDes -Recurse
14+
}
15+
16+
if (-not (Test-Path MediaPlayerPart)){
17+
echo "download $MediaPlayerSDK"
18+
mkdir MediaPlayerPart
19+
Invoke-WebRequest -uri $MediaPlayerSDK -OutFile $MediaPlayerDes -TimeoutSec 10;
20+
Unblock-File $MediaPlayerDes
21+
Expand-Archive -Path $MediaPlayerDes -DestinationPath . -Force
22+
Move-Item Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537\sdk\* MediaPlayerPart
23+
Remove-Item $MediaPlayerDes -Recurse
24+
Remove-Item Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537 -Recurse
25+
}
26+
27+
28+

0 commit comments

Comments
 (0)