Both sides previous revision Previous revision Next revision | Previous revision |
fr:develop:collaboration:dev:executable [2021/05/17 12:26] – qroyer | fr:develop:collaboration:dev:executable [2021/10/20 11:23] (current) – qroyer |
---|
===== Windows ====== | ===== Windows ====== |
| |
pyinstaller tips/executables/habby.spec --distpath=build/pyinstaller --workpath=build/pyinstaller/temp | ==== Pre-requis ===== |
robocopy biology build/pyinstaller/habby/biology /E > nul | |
robocopy doc build/pyinstaller/habby/doc /E > nul | * Librairie pyinstaller installée dans l'environnement Python |
robocopy model_hydro build/pyinstaller/habby/model_hydro /E > nul | * Installer Inno Script Studio à partir de ce lien https://www.kymoto.org/products/inno-script-studio/downloads |
robocopy translation build/pyinstaller/habby/translation /E > nul | * Installer Inno Setup à partir de ce lien https://jrsoftware.org/isdl.php |
robocopy file_dep build/pyinstaller/habby/file_dep /E > nul | |
:: setup file | ==== Step-by-step ===== |
start "" /w "C:\Program Files (x86)\Inno Script Studio\isstudio.exe" -compile tips\executables\setup_from_pyinstaller.iss | pyinstaller tips/executables/habby.spec --distpath=build/pyinstaller --workpath=build/pyinstaller/temp |
| robocopy biology build/pyinstaller/habby/biology /E > nul |
| robocopy doc build/pyinstaller/habby/doc /E > nul |
| robocopy model_hydro build/pyinstaller/habby/model_hydro /E > nul |
| robocopy translation build/pyinstaller/habby/translation /E > nul |
| robocopy file_dep build/pyinstaller/habby/file_dep /E > nul |
| :: setup file |
| start "" /w "C:\Program Files (x86)\Inno Script Studio\isstudio.exe" -compile tips\executables\setup_from_pyinstaller.iss |
| |
===== Linux ===== | ===== Linux ===== |
| |
pyinstaller tips/executables/habby.spec --distpath=build/pyinstaller --workpath=build/pyinstaller/temp | pyinstaller tips/executables/habby.spec --distpath=build/pyinstaller --workpath=build/pyinstaller/temp |
cp -r biology build/pyinstaller/habby/biology | cp -r biology build/pyinstaller/habby/biology |
cp -r doc build/pyinstaller/habby/doc | cp -r doc build/pyinstaller/habby/doc |
cp -r model_hydro build/pyinstaller/habby/model_hydro | cp -r model_hydro build/pyinstaller/habby/model_hydro |
cp -r translation build/pyinstaller/habby/translation | cp -r translation build/pyinstaller/habby/translation |
cp -r file_dep build/pyinstaller/habby/file_dep | cp -r file_dep build/pyinstaller/habby/file_dep |
:: zip file | :: zip file |
zip -r build/pyinstaller/habby.zip build/pyinstaller/habby | zip -r build/pyinstaller/habby.zip build/pyinstaller/habby |
| |
===== Mac ===== | ===== Mac ===== |