mirror of
https://github.com/skinnyrad/Lora-Scanner.git
synced 2026-08-10 18:42:47 +02:00
Chore: Updating windows installation
This commit is contained in:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user