diff --git a/static/get_ravenmcn.ps1 b/static/get_ravenmcn.ps1 index 2b55189..5f4e077 100644 --- a/static/get_ravenmcn.ps1 +++ b/static/get_ravenmcn.ps1 @@ -1,9 +1,9 @@ -#RavenMCN安装脚本 +#RavenMCN瀹夎鑴氭湰 -Out-String -InputObject "# RavenM国内版安装脚本 -# 由RavenfieldCommunity维护" +Out-String -InputObject "# RavenM鍥藉唴鐗堝畨瑁呰剼鏈 +# 鐢盧avenfieldCommunity缁存姢" -#创建session并使用直链api请求文件 +#鍒涘缓session骞朵娇鐢ㄧ洿閾綼pi璇锋眰鏂囦欢 Try { $session = New-Object Microsoft.PowerShell.Commands.WebRequestSession $session.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0" @@ -33,22 +33,23 @@ Try { } Catch { - Out-String -InputObject "安装文件下载失败,请检查网络或反馈给社区管理" + Out-String -InputObject "瀹夎鏂囦欢涓嬭浇澶辫触锛岃妫鏌ョ綉缁滄垨鍙嶉缁欑ぞ鍖虹鐞" pause exit 1 } -Finally { Out-String -InputObject "安装文件下载成功" } +Finally { Out-String -InputObject "瀹夎鏂囦欢涓嬭浇鎴愬姛" } -#校验hash +#鏍¢獙hash $hash1 = Get-FileHash .\RavenMCN.zip -Algorithm SHA256 $hash2 = $hash1.Hash -Out-String -InputObject "安装文件Hash: $hash2" +Out-String -InputObject "瀹夎鏂囦欢Hash: $hash2" if ($hash2 -eq "946539FC1FF3B99D148190AD04435FAF9CBDD7706DBE8159528B91D7ED556F78") { - #解压 - Out-String -InputObject "正在启动文件..." + #瑙e帇 + Out-String -InputObject "姝e湪鍚姩鏂囦欢..." Expand-Archive .\RavenMCN.zip -Force - #运行 - & .\RavenMCN\RavenM一键安装工具.exe + #杩愯 + & .\RavenMCN\RavenM涓閿畨瑁呭伐鍏.exe + pause } -else { Out-String -InputObject "安装文件校验不通过,请反馈给社区管理" } +else { Out-String -InputObject "瀹夎鏂囦欢鏍¢獙涓嶉氳繃锛岃鍙嶉缁欑ぞ鍖虹鐞" pause}