Update windows batch files

This commit is contained in:
Mashintime 2024-01-10 19:34:47 -05:00
parent 20b9988bb9
commit 8fa3fbea56
14 changed files with 78 additions and 15 deletions

View file

@ -0,0 +1,8 @@
@echo off
REM Place this batch file in FreeData/gui and then run it
REM ie. c:\FD-Src\gui
echo Install requirements for GUI...
call npm install
pause

View file

@ -1,5 +1,5 @@
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\tnc
REM ie. c:\FD-Src\gui
python daemon.py
call npm start
pause

View file

@ -0,0 +1,8 @@
@echo off
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\gui
echo Checking and install for updated requirements
call npm update
pause

View file

@ -0,0 +1,5 @@
REM Place this batch file in FreeData/modem and then run it
REM ie. c:\FD-Src\modem
python -m pip install -r ..\requirements.txt
pause

10
modem/Modem-Launch.bat Normal file
View file

@ -0,0 +1,10 @@
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\tnc
REM Set environment variable to let modem know where to find config, change if you need to specify a different config
set FREEDATA_CONFIG=.\config.ini
REM launch modem
flask --app server run
pause

View file

@ -0,0 +1,6 @@
@echo off
REM PLace in modem directory and run to retrieve list of audio devices; you'll need the CRC for the config.ini
python ..\tools\list_audio_devices.py
pause

View file

@ -1,5 +1,8 @@
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\gui_vue
@echo off
REM Place this batch file in FreeData/gui and then run it
REM ie. c:\FD-Src\gui
echo Install requirements for GUI...
call npm install
pause

View file

@ -1,5 +1,5 @@
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\gui_vue
REM Place this batch file in FreeData/gui and then run it
REM ie. c:\FD-Src\gui
call npm start
pause

View file

@ -1,5 +1,8 @@
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\gui_vue
@echo off
REM Place this batch file in FreeData/gui and then run it
REM ie. c:\FD-Src\gui
echo Check for and install updated requirements
call npm update
pause

View file

@ -0,0 +1,5 @@
REM Place this batch file in FreeData/modem and then run it
REM ie. c:\FD-Src\modem
python -m pip install -r ..\requirements.txt
pause

View file

@ -0,0 +1,10 @@
REM Place this batch file in FreeData/modem and then run it
REM ie. c:\FD-Src\modem
REM Set environment variable to let modem know where to find config, change if you need to specify a different config
set FREEDATA_CONFIG=.\config.ini
REM launch modem
flask --app server run
pause

View file

@ -0,0 +1,6 @@
@echo off
REM PLace in modem directory and run to retrieve list of audio devices; you'll need the CRC for the config.ini
python ..\tools\list_audio_devices.py
pause

View file

@ -1,5 +0,0 @@
REM Place this batch file in FreeData/tnc and then run it
REM ie. c:\FD-Src\tnc
python -m pip install -r ..\requirements.txt
pause

View file

@ -1,6 +1,10 @@
@echo off
REM This will copy the helper batch files to the approriate places for you
copy GUI* ..\..\gui_vue\
copy TNC* ..\..\tnc\
echo Copying GUI scripts to GUI directory
copy GUI* ..\..\gui\
echo Copying Modem scripts to Modem directory
copy MODEM* ..\..\modem\
pause