From 714040ec5ed2366d87d7265b72d248f487db8b1d Mon Sep 17 00:00:00 2001 From: Matthias Schmitt Date: Mon, 13 Dec 2021 09:00:21 +0000 Subject: [PATCH] Add build-flutter template --- templates/build-flutter | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/build-flutter diff --git a/templates/build-flutter b/templates/build-flutter new file mode 100644 index 0000000000..8e7dc47ed7 --- /dev/null +++ b/templates/build-flutter @@ -0,0 +1,34 @@ +# PLEASE REMOVE ALL COMMENTS BEFORE SUBMITTING TO F-DROID DATA! + +# Starting from the following template and grep for "flutter" in the metadata +# directory to see other examples. + +Builds: + - versionName: '1.0' + versionCode: 1 + commit: v1.0 + output: build/app/outputs/flutter-apk/app-release.apk + # Choose one of the Tags of the Flutter source: + # https://github.com/flutter/flutter/tags. + # Sometimes the Flutter version is already specified by + # upstream in pubspec.yaml, environment.flutter. + srclibs: + - flutter@2.8.0 + # Deletes unrelated directories, + # remove those not needed from the list. + rm: + - ios + - linux + - macos + - web + - windows + build: + - $$flutter$$/bin/flutter config --no-analytics + - $$flutter$$/bin/flutter build apk --release --verbose + +AutoUpdateMode: Version +UpdateCheckMode: Tags +UpdateCheckData: pubspec.yaml|version:\s.+\+(\d+)|.|version:\s(.+)\+ +CurrentVersion: '1.0' +CurrentVersionCode: 1 +