Skip to content

Commit

Permalink
fix: PDFJS check in run_windows bump:patch
Browse files Browse the repository at this point in the history
  • Loading branch information
taprosoft committed Sep 27, 2024
1 parent 00df123 commit 1522a3a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions scripts/run_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,6 @@ GOTO :eof
:download_and_extract_pdf_js
:: Download and extract a ZIP file from a URL to a destination directory

REM Check if the destination directory exists
if exist "%dest_dir%" (
echo Destination directory %dest_dir% already exists. Skipping download.
goto :eof
)

REM Create the destination directory
mkdir "%dest_dir%"

REM Define variables
set "pdf_js_version=4.0.379"
set "pdf_js_dist_name=pdfjs-%pdf_js_version%-dist"
Expand All @@ -254,6 +245,9 @@ REM Create the target directory if it does not exist (including parent folders)
if not exist "%target_pdf_js_dir%" (
echo Creating directory %target_pdf_js_dir%
mkdir "%target_pdf_js_dir%"
) else (
echo Directory already exists: %target_pdf_js_dir%
GOTO :eof
)

REM Download the ZIP file using PowerShell
Expand Down

0 comments on commit 1522a3a

Please sign in to comment.