Skip to content

Commit

Permalink
Update qpdf version on Windows (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed Dec 21, 2021
1 parent bda8b88 commit b01d89d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/r_tests_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tzutil /s "GMT Standard Time"

$env:R_LIB_PATH = "$env:USERPROFILE\R"
$env:CTAN_PACKAGE_ARCHIVE = "https://ctan.math.illinois.edu/systems/win32/miktex/tm/packages/"
$env:PATH += ";$env:R_LIB_PATH\Rtools\usr\bin" + ";$env:R_LIB_PATH\Rtools\mingw64\bin" + ";$env:R_LIB_PATH\R\bin\x64" + ";$env:R_LIB_PATH\miktex\texmfs\install\miktex\bin\x64" + ";$env:R_LIB_PATH\qpdf\qpdf-10.3.1\bin"
$env:PATH += ";$env:R_LIB_PATH\Rtools\usr\bin" + ";$env:R_LIB_PATH\Rtools\mingw64\bin" + ";$env:R_LIB_PATH\R\bin\x64" + ";$env:R_LIB_PATH\miktex\texmfs\install\miktex\bin\x64" + ";$env:R_LIB_PATH\qpdf\qpdf-10.4.0\bin"
cd $env:GITHUB_WORKSPACE

[Void][System.IO.Directory]::CreateDirectory($env:R_LIB_PATH)
Expand Down Expand Up @@ -45,7 +45,7 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem
.\miktex\miktexsetup_standalone.exe --remote-package-repository="$env:CTAN_PACKAGE_ARCHIVE" --local-package-repository=.\miktex\download --package-set=essential --quiet download ; Check-Output $?
.\miktex\download\miktexsetup_standalone.exe --remote-package-repository="$env:CTAN_PACKAGE_ARCHIVE" --portable="$env:R_LIB_PATH\miktex" --quiet install ; Check-Output $?

Invoke-WebRequest -Uri https://sourceforge.net/projects/qpdf/files/qpdf/10.3.1/qpdf-10.3.1-bin-mingw32.zip/download -OutFile qpdf.zip -UserAgent "NativeHost" -MaximumRetryCount 5
Invoke-WebRequest -Uri https://sourceforge.net/projects/qpdf/files/qpdf/10.4.0/qpdf-10.4.0-bin-mingw32.zip/download -OutFile qpdf.zip -UserAgent "NativeHost" -MaximumRetryCount 5
[System.IO.Compression.ZipFile]::ExtractToDirectory("qpdf.zip", "qpdf")
Copy-Item .\qpdf -Destination $env:R_LIB_PATH -Recurse

Expand Down

0 comments on commit b01d89d

Please sign in to comment.