build.bat 521 B

1234567891011121314151617181920212223
  1. @echo off
  2. set VENV_DIR=%~dp0\.venv
  3. echo Activating virtual environment %VENV_DIR%
  4. call "%VENV_DIR%\scripts\activate"
  5. echo Saving current directory
  6. pushd %~dp0
  7. echo Creating app build directory
  8. set BUILD_DIR=appbuild
  9. mkdir %BUILD_DIR%
  10. cd %BUILD_DIR%
  11. echo Creating executable
  12. rem pyinstaller --clean --onefile ..\SwitchTester.py > build.log 2>&1
  13. pyinstaller --noconfirm --log-level=WARN ..\SwitchTester.spec > build.log 2>&1
  14. echo Restoring current directory
  15. popd
  16. echo Deactivating virtual environment
  17. call deactivate