Advertisement
nuggt69

fortnite

Mar 17th, 2021
2,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (-not(Test-Path -Path .\legendary.exe -PathType Leaf)) {
  2.      try {
  3.          Invoke-RestMethod -Uri https://github.com/derrod/legendary/releases/download/0.20.6/legendary.exe -OutFile .\legendary.exe
  4.          Write-Host "Launcher downloaded"
  5.      }
  6.      catch {
  7.          throw $_.Exception.Message
  8.      }
  9.  }
  10.  if (.\legendary.exe status | Select-String -Pattern 'not logged in' -Quiet) {
  11.     try {
  12.         Start-Process "https://www.epicgames.com/id/login?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Fapi%2Fredirect"
  13.         $pwd_string = Read-Host "Enter your Epic Session ID"
  14.         .\legendary.exe auth --sid $pwd_string
  15.     }
  16.     catch {
  17.         throw $_.Exception.Message
  18.     }
  19. }
  20. .\legendary.exe install Fortnite
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement