
@ECHO OFF

rem Python environment (-U = update python packages / -r = texte file)
python -m pip install -U -r ..\virtualenv\requirements.txt

rem Build windows version
mkdir acoused_packaging
pyinstaller --name "acoused" ..\main.py -y

rem Icons
mkdir acoused_packaging\icons
copy /y ..\icons\*.png acoused_packaging\icons

rem Logos
mkdir acoused_packaging\logos
copy /y ..\logos\* acoused_packaging\logos

rem Doc
copy /y ..\ABS_calibration_constant_kt.xlsx acoused_packaging
copy /y ..\AcouSed_UserManual.pdf acoused_packaging
copy /y ..\Acoustic_Inversion_theory.pdf acoused_packaging
copy /y ..\Tutorial_AQUAscat_software.pdf acoused_packaging

rem move exe
move /y dist\AcouSed\acoused.exe acoused_packaging
move /y dist\acoused\_internal acoused_packaging
copy debug.bat acoused_packaging
rmdir /s /q build
rmdir /s /q dist
del /q AcouSed.spec

set PATH=%PATH%;C:\Program Files (x86)/7-Zip
7z a -tzip acoused_packaging.zip acoused_packaging

