-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpost_install.bat
More file actions
24 lines (21 loc) · 875 Bytes
/
post_install.bat
File metadata and controls
24 lines (21 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
:: Post-Installation script ::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: ALPR
::
:: The setup.bat file will find this post_install.bat file and execute it.
::
:: For help with install scripts, notes on variables and methods available, tips,
:: and explanations, see /src/modules/install_script_help.md
@if "%1" NEQ "post-install" (
echo This script is only called from ..\..\CodeProject.AI-Server\src\setup.bat
@pause
@goto:eof
)
REM We have a patch to apply for everyone else due to a bad truthy test on a
REM multi-dimensional array in paddleocr 2.7.0.3
if "!hasCUDA!" == "false" (
call "%utilsScript%" WriteLine "Applying PaddleOCR patch"
copy "!moduleDirPath!\patch\paddleocr-2.7.0.3\paddleocr.py" "!packagesDirPath!\paddleocr\."
)
REM TODO: Check assets created and has files
REM set moduleInstallErrors=...