2020-10-25 01:23:24 +00:00
|
|
|
cd /D "%~dp0"
|
2021-04-11 18:02:19 +00:00
|
|
|
|
2021-04-27 20:48:17 +00:00
|
|
|
: Get the git commit / branch and write it into build.py.
|
2021-04-11 18:02:19 +00:00
|
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`git rev-parse --short HEAD`) DO (
|
|
|
|
SET build_commit=%%F
|
|
|
|
)
|
2021-04-27 20:48:17 +00:00
|
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`git branch --show-current`) DO (
|
|
|
|
SET build_branch=%%F
|
|
|
|
)
|
2021-04-14 13:22:02 +00:00
|
|
|
echo BUILD: str = "%build_commit%"> ..\build.py
|
2021-04-27 20:48:17 +00:00
|
|
|
echo BRANCH: str = "%build_branch%">> ..\build.py
|
2021-04-11 18:02:19 +00:00
|
|
|
|
2024-03-29 16:32:06 +00:00
|
|
|
poetry install
|
2020-10-25 01:23:24 +00:00
|
|
|
|
2020-10-29 01:41:01 +00:00
|
|
|
: Generate the json config in case you wanted to use the gui to regenerate the command below manually.
|
2024-03-29 16:38:10 +00:00
|
|
|
poetry run python generate-build-exe-config.py
|
2020-10-25 01:23:24 +00:00
|
|
|
|
2020-10-29 01:41:01 +00:00
|
|
|
: auto-py-to-exe -c build-exe-config.json -o ../install
|
2020-10-25 01:23:24 +00:00
|
|
|
|
2024-03-29 16:38:10 +00:00
|
|
|
poetry run python build-exe.py
|
2020-10-29 01:41:01 +00:00
|
|
|
|
|
|
|
build-exe-pyinstaller-command.bat
|
|
|
|
|
|
|
|
del *.spec /q
|
|
|
|
|
2021-04-19 14:45:20 +00:00
|
|
|
del ..\build.py /q
|
|
|
|
|
2020-10-29 01:41:01 +00:00
|
|
|
echo "Output file should be located in 'output/' folder."
|
2021-04-11 18:02:19 +00:00
|
|
|
TIMEOUT 5
|