From 3ad9aea25b2f9751dbe1d686aeab03034a7c93b5 Mon Sep 17 00:00:00 2001 From: Halcy0nic <42481692+Halcy0nic@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:29:59 -0500 Subject: [PATCH] Chore: Updating windows installation --- install-windows.bat | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install-windows.bat b/install-windows.bat index 6af2f8a..3c775f5 100644 --- a/install-windows.bat +++ b/install-windows.bat @@ -9,7 +9,7 @@ IF %ERRORLEVEL% EQU 0 ( echo Installing Python 3.12... :: Download the most recent Python 3.12 installer -powershell -Command "Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe -OutFile python-installer.exe" +powershell -Command "Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe -OutFile python-installer.exe" :: Install Python silently python-installer.exe /quiet InstallAllUsers=1 PrependPath=1 :: Clean up installer @@ -23,8 +23,16 @@ IF %ERRORLEVEL% NEQ 0 ( python -m ensurepip --upgrade ) +:: Create a requirements.txt file +echo beautifulsoup4==4.12.3 > requirements.txt +echo Flask==2.3.2 >> requirements.txt +echo Flask_SocketIO==5.3.6 >> requirements.txt +echo MarkupSafe==2.1.3 >> requirements.txt +echo pyserial==3.5 >> requirements.txt +echo Requests==2.31.0 >> requirements.txt + :: Install required Python packages -pip install flask flask-socketio pyserial beautifulsoup4 requests +pip install -r requirements.txt :: Inform the user that the installation is complete echo Installation complete. You can now run your application using: python your_script.py