Skip to content

Commit 79f5110

Browse files
committed
Set rive version to 0.12.4 and re-add flathub build
1 parent 678d220 commit 79f5110

File tree

2 files changed

+34
-33
lines changed

2 files changed

+34
-33
lines changed

.github/workflows/build-release.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ jobs:
5757
flutter pub run cider version ${{ env.VERSION }}+${{ env.BUILD }}
5858
flutter pub run cider bump build
5959
60-
# - name: Build application for linux
61-
# run: |
62-
# sudo apt update
63-
# sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
64-
# flutter build linux --release
65-
# cd flatpak/scripts
66-
# dart pub get
67-
# dart flatpak_packager.dart --meta ../flatpak_meta.json --github --addTodaysVersion ${{ env.VERSION }}
60+
- name: Build application for linux
61+
run: |
62+
sudo apt update
63+
sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
64+
flutter build linux --release
65+
cd flatpak/scripts
66+
dart pub get
67+
dart flatpak_packager.dart --meta ../flatpak_meta.json --github --addTodaysVersion ${{ env.VERSION }}
6868
6969
- name: Build AAB
7070
run: flutter build appbundle --release
@@ -88,30 +88,30 @@ jobs:
8888
files: |
8989
build/app/outputs/bundle/release/app-release.aab
9090
build/app/outputs/flutter-apk/app-release.apk
91-
# flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.tar.gz
92-
# flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.sha256
93-
94-
# - name: Generate flathub manifest
95-
# run: |
96-
# cd flatpak/scripts
97-
# dart pub get
98-
# dart manifest_generator.dart --meta ../flatpak_meta.json --github
99-
# mkdir ../../flathub
100-
# cp flatpak_generator_exports/de.wger.flutter.json ../../flathub
101-
# cp flatpak_generator_exports/flathub.json ../../flathub
102-
#
103-
# - name: Push updated config to flathub repository
104-
# uses: cpina/github-action-push-to-another-repository@main
105-
# env:
106-
# SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
107-
# with:
108-
# source-directory: flathub
109-
# destination-github-username: wger-project
110-
# destination-repository-name: de.wger.flutter
111-
# user-email: [email protected]
112-
# target-branch: release-${{ env.VERSION }}
113-
# create-target-branch-if-needed: true
114-
# commit-message: Update to ${{ env.VERSION }}
91+
flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.tar.gz
92+
flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.sha256
93+
94+
- name: Generate flathub manifest
95+
run: |
96+
cd flatpak/scripts
97+
dart pub get
98+
dart manifest_generator.dart --meta ../flatpak_meta.json --github
99+
mkdir ../../flathub
100+
cp flatpak_generator_exports/de.wger.flutter.json ../../flathub
101+
cp flatpak_generator_exports/flathub.json ../../flathub
102+
103+
- name: Push updated config to flathub repository
104+
uses: cpina/github-action-push-to-another-repository@main
105+
env:
106+
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
107+
with:
108+
source-directory: flathub
109+
destination-github-username: wger-project
110+
destination-repository-name: de.wger.flutter
111+
user-email: [email protected]
112+
target-branch: release-${{ env.VERSION }}
113+
create-target-branch-if-needed: true
114+
commit-message: Update to ${{ env.VERSION }}
115115

116116
# Note: the original tag that triggered the workflow is in the form vX.Y.Z
117117
# but the pubspec.yaml is committed in the commit after that one.

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ dependencies:
4747
version: ^3.0.2
4848
package_info_plus: ^7.0.0
4949
provider: ^6.1.2
50-
rive: ^0.13.4
50+
# Note, do not update rive! https://github.com/wger-project/flutter/issues/577
51+
rive: ^0.12.4
5152
shared_preferences: ^2.2.3
5253
table_calendar: ^3.0.8
5354
url_launcher: ^6.2.6

0 commit comments

Comments
 (0)