mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-14 01:37:25 -05:00
Remove the portable release builder code from download-and-install-cygwin.sh script, call cyg_portable.sh from said script instead (simplify); Remove old .bat files or rename pulseaudio ones in case of need for referencing them; Include a simple example_options.txt file so users can get an idea of options to pass to dsd-fme as opposed to having a bunch of bat files;
72 lines
2.6 KiB
Batchfile
72 lines
2.6 KiB
Batchfile
@REM Digital Speech Decoder: Florida Man Edition
|
|
@REM DSD-FME Cygwin Windows Portable Builds
|
|
@REM
|
|
@REM The source code of this software can be downloaded here:
|
|
@REM https://github.com/lwvmobile/dsd-fme
|
|
@REM
|
|
@REM If you paid for, or were otherwise fleeced for this software, DEMAND YOUR MONEY BACK!
|
|
@REM
|
|
@REM This software is designed to be used with an SDR receiver (like SDR++ or SDR#) with TCP input,
|
|
@REM RTL Input, media file playback over virtual cables or null-sinks, or a Discriminator Tap input
|
|
@REM
|
|
@REM The complete options list can be seen by viewing complete_usage_options.txt
|
|
@REM Many examples can be found in example_options.txt
|
|
@REM
|
|
@REM Enjoy!
|
|
|
|
@REM Regarding the options string (or any string in .bat files)
|
|
@REM If your string may contain spaces, set the first '"' before options, and then an ending '"'
|
|
@REM Incorrect: set options="-fs -N -Z"
|
|
@REM Correct: set "options=-fs -N -Z"
|
|
|
|
@REM set options to pass to dsd-fme
|
|
set "options= -N -Z "
|
|
|
|
@REM Set Date Time for log (sourced from: https://stackoverflow.com/questions/1192476/format-date-and-time-in-a-windows-batch-script)
|
|
@echo off
|
|
REM "%date: =0%" replaces spaces with zeros
|
|
set d=%date: =0%
|
|
REM "set yyyy=%d:~-4%" pulls the last 4 characters
|
|
set yyyy=%d:~-4%
|
|
set mm=%d:~4,2%
|
|
set dd=%d:~7,2%
|
|
set dow=%d:~0,3%
|
|
set d=%yyyy%%mm%%dd%
|
|
|
|
set t=%TIME: =0%
|
|
REM "%t::=%" removes semi-colons
|
|
REM Instead of above, you could use "%t::=-%" to
|
|
REM replace semi-colons with hyphens (or any
|
|
REM non-special character)
|
|
set t=%t::=%
|
|
set t=%t:.=%
|
|
|
|
set datetimestr=%d%_%t%
|
|
@REM @echo Long date time str = %datetimestr%
|
|
|
|
@REM random number is used so that two log files don't share the same name
|
|
set rnd=%RANDOM%
|
|
|
|
@REM set log file relative filepath
|
|
set "log=.\logs\log_%datetimestr%_%rnd%.txt"
|
|
|
|
@REM create the log file now with touch
|
|
.\dsd-fme\touch.exe %log%
|
|
|
|
@REM Launch Tail to display the log in a seperate console window
|
|
start .\dsd-fme\tail.exe -n 40 -f %log%
|
|
|
|
@REM start dsd-fme with options and log
|
|
.\dsd-fme\dsd-fme.exe %options% 2> %log%
|
|
|
|
echo ----------------------------------------------------------------------------------
|
|
echo ----------------------------------------------------------------------------------
|
|
echo For any errors, see: %log%
|
|
echo Forward %log% and Options: "%options%"
|
|
echo to developer on Github or Radio Reference for troubleshooting.
|
|
echo ----------------------------------------------------------------------------------
|
|
echo ----------------------------------------------------------------------------------
|
|
|
|
@REM Set pause to diplay above message
|
|
PAUSE
|