mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-08 03:46:51 +03:00
Merge PR #824.
This commit is contained in:
commit
df77f507ca
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
@ -22,10 +22,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
choco install swig
|
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install poetry
|
pip install poetry
|
||||||
|
|
||||||
|
- name: Build the Helper
|
||||||
|
run: |
|
||||||
|
# Needed to shorten the path for zxing-cpp build
|
||||||
|
$env:TMPDIR = "C:\e"
|
||||||
|
poetry config virtualenvs.path C:\e
|
||||||
|
.\build-helper.bat
|
||||||
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
@ -38,9 +44,6 @@ jobs:
|
|||||||
flutter test
|
flutter test
|
||||||
flutter analyze
|
flutter analyze
|
||||||
|
|
||||||
- name: Build the Helper
|
|
||||||
run: .\build-helper.bat
|
|
||||||
|
|
||||||
- name: Build the app
|
- name: Build the app
|
||||||
run: |
|
run: |
|
||||||
$version = python set-version.py | select-object -first 1
|
$version = python set-version.py | select-object -first 1
|
||||||
|
@ -2,18 +2,23 @@
|
|||||||
|
|
||||||
echo Building authenticator-helper for Windows...
|
echo Building authenticator-helper for Windows...
|
||||||
cd helper
|
cd helper
|
||||||
poetry install
|
poetry install || goto :error
|
||||||
rmdir /s /q ..\build\windows\helper
|
rmdir /s /q ..\build\windows\helper
|
||||||
poetry run pyinstaller authenticator-helper.spec --distpath ..\build\windows
|
poetry run pyinstaller authenticator-helper.spec --distpath ..\build\windows || goto :error
|
||||||
|
|
||||||
echo Generating license files...
|
echo Generating license files...
|
||||||
rmdir /s /q ..\build\windows\helper-license-venv
|
rmdir /s /q ..\build\windows\helper-license-venv
|
||||||
poetry build
|
poetry build || goto :error
|
||||||
poetry run python -m venv ..\build\windows\helper-license-venv
|
poetry run python -m venv ..\build\windows\helper-license-venv || goto :error
|
||||||
..\build\windows\helper-license-venv\Scripts\python -m pip install --upgrade pip wheel
|
..\build\windows\helper-license-venv\Scripts\python -m pip install --upgrade pip wheel || goto :error
|
||||||
..\build\windows\helper-license-venv\Scripts\python -m pip install dist\authenticator_helper-0.1.0-py3-none-any.whl pip-licenses
|
..\build\windows\helper-license-venv\Scripts\python -m pip install dist\authenticator_helper-0.1.0-py3-none-any.whl pip-licenses || goto :error
|
||||||
..\build\windows\helper-license-venv\Scripts\pip-licenses --format=json --no-license-path --with-license-file --ignore-packages authenticator-helper zxing-cpp --output-file ..\assets\licenses\helper.json
|
..\build\windows\helper-license-venv\Scripts\pip-licenses --format=json --no-license-path --with-license-file --ignore-packages authenticator-helper zxing-cpp --output-file ..\assets\licenses\helper.json || goto :error
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo All done, output in build/windows/
|
echo All done, output in build/windows/
|
||||||
|
goto :EOF
|
||||||
|
|
||||||
|
:error
|
||||||
|
echo Failed with error #%errorlevel%.
|
||||||
|
exit /b %errorlevel%
|
||||||
|
Loading…
Reference in New Issue
Block a user