authpass: fix build

This commit is contained in:
linsui 2024-01-31 20:27:19 +08:00
parent e3fd4c8332
commit 61d2a6b0f1

View file

@ -579,19 +579,34 @@ Builds:
commit: 2d0366a02d76d829b05f8d7fd014d37f48a95c8f
subdir: authpass
submodules: true
sudo:
- apt-get update
- apt-get install -y openjdk-17-jdk-headless
- update-java-alternatives -a
output: build/app/outputs/apk/fdroid/release/app-fdroid-release.apk
srclibs:
- flutter@stable
rm:
- authpass/ios
- authpass/macos
- authpass/web
- authpass/windows
- deps/kdbx.dart/libargon2*
- authpass/_tools/blackbox.go.linux
prebuild: JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 $$SDK$$/tools/bin/sdkmanager
'cmake;3.10.2.4988404' > /dev/null
prebuild:
- sdkmanager 'cmake;3.10.2.4988404'
- source _tools/_flutter_version.sh
- pushd $$flutter$$
- git checkout -f $FLUTTER_LINUX_VERSION
- popd
- export PUB_CACHE=$(pwd)/.pub-cache
- $$flutter$$/bin/flutter config --no-analytics
- $$flutter$$/bin/flutter pub get
scandelete:
- authpass/.pub-cache
build:
- mkdir tmp
- DEPS=./tmp _tools/install_flutter.sh
- tmp/flutter/bin/flutter config --no-analytics
- tmp/flutter/bin/flutter build apk -t lib/env/fdroid.dart --flavor fdroid --release
- export PUB_CACHE=$(pwd)/.pub-cache
- $$flutter$$/bin/flutter build apk -t lib/env/fdroid.dart --flavor fdroid --release
ndk: r22b
AutoUpdateMode: Version