Extract embedded files from Word docs with original names, selectable output, and a Windows exe build script. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
404 B
Batchfile
19 lines
404 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
|
|
echo Installing dependencies...
|
|
python -m pip install -r requirements.txt
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo.
|
|
echo Building WordAttachmentExtractor.exe ...
|
|
python -m PyInstaller --noconfirm --clean --onefile --windowed --name "WordAttachmentExtractor" app.py
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo.
|
|
echo Done. EXE is here:
|
|
echo %cd%\dist\WordAttachmentExtractor.exe
|
|
echo.
|
|
pause
|