| | |
| | | |
| | | @REM change to the filepath |
| | | cd %~dp0 |
| | | @REM echo change to path: %cd% |
| | | if exist ../../aerial_deploy ( |
| | | echo the folder aerial_deploy is exited, removing it ... |
| | | rmdir /S /Q "../../aerial_deploy" |
| | | echo remove done! |
| | | ) |
| | | |
| | | cd .. |
| | | git lfs install |
| | | git lfs pull |
| | | @REM create the virtual env for this project |
| | | @REM please make sure your machine have installed a |
| | | @REM python with global env variable or select it by yourself. |
| | | |
| | | cd %~dp0 |
| | | mkdir "../../aerial_deploy" |
| | | python -m venv "../.env" |
| | | |
| | | echo setting the env ... |
| | | tar -xzf "./aerial.tar.gz" -C "../../aerial_deploy" |
| | | @REM add vitrual env python to the path |
| | | path "%~dp0/../.env/Scripts/";%path% |
| | | |
| | | cd .. |
| | | if not exist ".env" ( |
| | | mklink /j ".env" "../aerial_deploy/") |
| | | @REM install some packages |
| | | python -m pip install --no-index -f "requirements" -r "../requirements.txt" |
| | | echo ##################################################################### |
| | | python -c "import cv2, pika, flask; print('Hello World! The env is ready!')" |
| | | |
| | | cd %~dp0 |
| | | call "../src/protos/compile.bat" |
| | | |
| | | echo ALL DONE! |
| | | echo =========== ALL DONE ================ |
| | | echo Press any key to exit this windiow. |
| | | pause |
| | | |
| | | |
| | | |