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