2022-05-06 11:18:46 +03:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
echo Building authenticator-helper for Windows...
|
|
|
|
cd helper
|
|
|
|
poetry install
|
|
|
|
rmdir /s /q ..\build\windows\helper
|
|
|
|
poetry run pyinstaller authenticator-helper.spec --distpath ..\build\windows
|
2022-06-05 20:22:00 +03:00
|
|
|
|
|
|
|
echo Generating license files...
|
|
|
|
rmdir /s /q ..\build\windows\helper-license-venv
|
|
|
|
poetry build
|
|
|
|
poetry run python -m venv ..\build\windows\helper-license-venv
|
2022-06-07 14:04:05 +03:00
|
|
|
..\build\windows\helper-license-venv\Scripts\pip install --upgrade pip wheel
|
2022-06-05 20:22:00 +03:00
|
|
|
..\build\windows\helper-license-venv\Scripts\pip install dist\authenticator_helper-0.1.0-py3-none-any.whl pip-licenses
|
|
|
|
..\build\windows\helper-license-venv\Scripts\pip-licenses --format=json --no-license-path --with-license-file --ignore-packages authenticator-helper --output-file ..\assets\licenses\helper.json
|
|
|
|
|
2022-05-06 11:18:46 +03:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo All done, output in build/windows/
|