Unverified Commit 314b9d24 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] [ci] Fix MiKTeX downloads (fixes #3198) (#3199)

* [R-package] [ci] Fix MiKTeX downloads (fixes #3198)

* use v2
parent 9f367d11
...@@ -24,7 +24,7 @@ function Download-Miktex-Setup { ...@@ -24,7 +24,7 @@ function Download-Miktex-Setup {
[string]$destfile [string]$destfile
) )
$PageContent = Invoke-WebRequest -Uri $archive -Method Get $PageContent = Invoke-WebRequest -Uri $archive -Method Get
$SetupExeFile = $PageContent.Links.href | Select-String -Pattern 'miktexsetup.*' $SetupExeFile = $PageContent.Links.href | Select-String -Pattern 'miktexsetup-2.*'
$FileToDownload = "${archive}/${SetupExeFile}" $FileToDownload = "${archive}/${SetupExeFile}"
Download-File-With-Retries $FileToDownload $destfile Download-File-With-Retries $FileToDownload $destfile
} }
......
...@@ -406,6 +406,7 @@ R-package/src-i386 ...@@ -406,6 +406,7 @@ R-package/src-i386
lightgbm_r/* lightgbm_r/*
lightgbm*.tar.gz lightgbm*.tar.gz
lightgbm.Rcheck/ lightgbm.Rcheck/
miktex*.zip
*.def *.def
# Files created by R examples and tests # Files created by R examples and tests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment