setup_coturn.bat 722 B

12345678910111213141516171819202122232425
  1. @Rem Copyright Epic Games, Inc. All Rights Reserved.
  2. @echo off
  3. @Rem Set script location as working directory for commands.
  4. pushd "%~dp0"
  5. @Rem Look for CoTURN directory next to this script
  6. if exist coturn\ (
  7. echo CoTURN directory found...skipping install.
  8. ) else (
  9. echo CoTURN directory not found...beginning CoTURN download for Windows.
  10. @Rem Download nodejs and follow redirects.
  11. curl -L -o ./turnserver.zip "https://github.com/mcottontensor/coturn/releases/download/v4.5.2-windows/turnserver.zip"
  12. @Rem Unarchive the .zip to a directory called "turnserver"
  13. mkdir coturn & tar -xf turnserver.zip -C coturn
  14. @Rem Delete the downloaded turnserver.zip
  15. del turnserver.zip
  16. )
  17. @Rem Pop working directory
  18. popd