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-14 10:13:44 +03:00
|
|
|
..\build\windows\helper-license-venv\Scripts\python -m pip install --upgrade pip wheel
|
|
|
|
..\build\windows\helper-license-venv\Scripts\python -m pip install dist\authenticator_helper-0.1.0-py3-none-any.whl pip-licenses
|
2022-06-05 20:22:00 +03:00
|
|
|
..\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/
|