File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ cd /d %~dp0
2+
3+ powershell.exe -command ^
4+ " & {set-executionpolicy Remotesigned -Scope Process; ./'installCheck.ps1'}"
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments