yubioath-flutter/build-ykman.bat

17 lines
405 B
Batchfile
Raw Normal View History

2021-11-19 11:08:04 +03:00
@echo off
REM Make sure the submodule is cloned, but if it already is, don't reset it.
( dir /b /a "yubikey-manager" | findstr . ) > nul || (
git submodule init
git submodule update
)
echo Building ykman CLI for Windows...
cd yubikey-manager
poetry install
rmdir /s /q ..\build\windows\ykman
poetry run pyinstaller ykman.spec --distpath ..\build\windows
cd ..
echo All done, output in build/windows/