mirror of https://gitlab.com/pamhyr/pamhyr2
33 lines
853 B
Batchfile
33 lines
853 B
Batchfile
rem Windows batch for pamhyr windows version building
|
|
@ECHO ON
|
|
|
|
rem Python environment
|
|
python -m pip install -r ..\requirements.txt
|
|
|
|
rem Build windows version
|
|
pyinstaller ..\src\pamhyr.py -y
|
|
|
|
rem Copy data
|
|
mkdir dist\pamhyr\View\ui\ressources
|
|
mkdir dist\pamhyr\View\ui\Widgets
|
|
|
|
rem UI
|
|
copy /y ..\src\View\ui\ressources\ dist\pamhyr\View\ui\ressources
|
|
copy /y ..\src\View\ui\Widgets\*.ui dist\pamhyr\View\ui\Widgets
|
|
copy /y ..\src\View\ui\*.ui dist\pamhyr\View\ui\
|
|
|
|
rem Lang
|
|
copy /y ..\src\lang\*.qm dist\pamhyr\lang\
|
|
|
|
rem Information
|
|
copy /y ..\VERSION dist\pamhyr\
|
|
copy /y ..\AUTHORS dist\pamhyr\
|
|
|
|
rem MAGE
|
|
rem copy /y ..\mage\src\build\mage.exe dist\pamhyr\
|
|
rem copy /y ..\mage\src\build\mage_extraire.exe dist\pamhyr\
|
|
rem copy /y ..\mage\src\build\mailleurPF.exe dist\pamhyr\
|
|
|
|
rem Make installer
|
|
"C:\Program Files (x86)\NSIS\makensis.exe" pamhyr.nsi
|