Sends doula coverage claims via Telnyx fax API every hour, logs every attempt, and generates a printable HTML report for HR. Includes both a Linux CLI with cron scheduling and a Windows GUI (tkinter) that can be packaged as a portable exe via PyInstaller. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
779 B
Batchfile
30 lines
779 B
Batchfile
@echo off
|
|
echo === Building AutoFax Windows Executable ===
|
|
echo.
|
|
|
|
where python >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo ERROR: Python not found. Install Python 3.10+ from python.org
|
|
echo Make sure to check "Add Python to PATH" during install.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Installing build dependencies...
|
|
pip install pyinstaller requests python-dotenv
|
|
|
|
echo.
|
|
echo Building executable...
|
|
pyinstaller --onefile --windowed --name AutoFax --icon=NONE gui.py
|
|
|
|
echo.
|
|
if exist dist\AutoFax.exe (
|
|
echo === Build successful! ===
|
|
echo Executable: dist\AutoFax.exe
|
|
echo.
|
|
echo Copy AutoFax.exe to a flash drive and run it anywhere.
|
|
echo Config and reports will be saved next to the exe.
|
|
) else (
|
|
echo Build failed. Check the output above for errors.
|
|
)
|
|
pause
|