Remove IE Requirement in ps1 script (#2)

PowerShell 5 is on windows by default and uses IE by default which is no longer support on windows 10
This commit is contained in:
Kolby Moroz Liebl
2021-04-28 18:17:05 -06:00
committed by GitHub
parent b898b83f8a
commit 40bd70dc58

View File

@@ -6,9 +6,9 @@ Remove-Item -Recurse -Force "tmp" -ErrorAction SilentlyContinue | Out-Null
New-Item -ItemType Directory -Force -Path "tmp"
Write-Output "Getting latest Tachidesk build files"
$zipball = (Invoke-WebRequest -Uri "https://api.github.com/repos/Suwayomi/Tachidesk/releases/latest").content | Select-String -Pattern 'https[\.:\/A-Za-z0-9]*zipball\/[a-zA-Z0-9.]*' -CaseSensitive
$zipball = (Invoke-WebRequest -Uri "https://api.github.com/repos/Suwayomi/Tachidesk/releases/latest" -UseBasicParsing).content | Select-String -Pattern 'https[\.:\/A-Za-z0-9]*zipball\/[a-zA-Z0-9.]*' -CaseSensitive
Invoke-WebRequest -Uri $zipball.Matches.Value -OutFile tmp/Tachidesk.zip
Invoke-WebRequest -Uri $zipball.Matches.Value -OutFile tmp/Tachidesk.zip -UseBasicParsing
Expand-Archive -Path "tmp/Tachidesk.zip" -DestinationPath "tmp"
@@ -32,4 +32,4 @@ Move-Item -Force $tachidesk_jar "src/main/resources/Tachidesk.jar"
Write-Output "Cleaning up..."
Remove-Item -Recurse -Force "tmp" | Out-Null
Write-Output "Done!"
Write-Output "Done!"