build: Use Flutter 3.19.6 for Linux
This commit is contained in:
parent
5f40393dd9
commit
d4da2dd431
8 changed files with 43 additions and 10 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -110,7 +110,7 @@ jobs:
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version: 3.19.6 # Workaround for not working on 3.22
|
||||||
cache: true
|
cache: true
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 libssl-dev -y
|
run: sudo apt-get update && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 libssl-dev -y
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,8 @@ class ChatView extends StatelessWidget {
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.surfaceContainerHighest,
|
// ignore: deprecated_member_use
|
||||||
|
.surfaceVariant,
|
||||||
borderRadius: const BorderRadius.all(
|
borderRadius: const BorderRadius.all(
|
||||||
Radius.circular(24),
|
Radius.circular(24),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,8 @@ class Message extends StatelessWidget {
|
||||||
final client = Matrix.of(context).client;
|
final client = Matrix.of(context).client;
|
||||||
final ownMessage = event.senderId == client.userID;
|
final ownMessage = event.senderId == client.userID;
|
||||||
final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft;
|
final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft;
|
||||||
var color = Theme.of(context).colorScheme.surfaceContainerHighest;
|
// ignore: deprecated_member_use
|
||||||
|
var color = Theme.of(context).colorScheme.surfaceVariant;
|
||||||
final displayTime = event.type == EventTypes.RoomCreate ||
|
final displayTime = event.type == EventTypes.RoomCreate ||
|
||||||
nextEvent == null ||
|
nextEvent == null ||
|
||||||
!event.originServerTs.sameEnvironment(nextEvent!.originServerTs);
|
!event.originServerTs.sameEnvironment(nextEvent!.originServerTs);
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,8 @@ class TypingIndicators extends StatelessWidget {
|
||||||
padding: const EdgeInsets.only(top: topPadding),
|
padding: const EdgeInsets.only(top: topPadding),
|
||||||
child: Material(
|
child: Material(
|
||||||
color:
|
color:
|
||||||
Theme.of(context).colorScheme.surfaceContainerHighest,
|
// ignore: deprecated_member_use
|
||||||
|
Theme.of(context).colorScheme.surfaceVariant,
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.only(
|
||||||
topLeft: Radius.circular(2),
|
topLeft: Radius.circular(2),
|
||||||
topRight: Radius.circular(AppConfig.borderRadius),
|
topRight: Radius.circular(AppConfig.borderRadius),
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,8 @@ class HomeserverAppBar extends StatelessWidget {
|
||||||
: null,
|
: null,
|
||||||
fillColor: FluffyThemes.isColumnMode(context)
|
fillColor: FluffyThemes.isColumnMode(context)
|
||||||
? Theme.of(context).colorScheme.surface
|
? Theme.of(context).colorScheme.surface
|
||||||
: Theme.of(context).colorScheme.surfaceContainerHighest,
|
// ignore: deprecated_member_use
|
||||||
|
: Theme.of(context).colorScheme.surfaceVariant,
|
||||||
prefixText: '${L10n.of(context)!.homeserver}: ',
|
prefixText: '${L10n.of(context)!.homeserver}: ',
|
||||||
hintText: L10n.of(context)!.enterYourHomeserver,
|
hintText: L10n.of(context)!.enterYourHomeserver,
|
||||||
suffixIcon: const Icon(Icons.search),
|
suffixIcon: const Icon(Icons.search),
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@ class LoginView extends StatelessWidget {
|
||||||
|
|
||||||
final textFieldFillColor = FluffyThemes.isColumnMode(context)
|
final textFieldFillColor = FluffyThemes.isColumnMode(context)
|
||||||
? Theme.of(context).colorScheme.surface
|
? Theme.of(context).colorScheme.surface
|
||||||
: Theme.of(context).colorScheme.surfaceContainerHighest;
|
// ignore: deprecated_member_use
|
||||||
|
: Theme.of(context).colorScheme.surfaceVariant;
|
||||||
|
|
||||||
return LoginScaffold(
|
return LoginScaffold(
|
||||||
enforceMobileMode: Matrix.of(context).client.isLogged(),
|
enforceMobileMode: Matrix.of(context).client.isLogged(),
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,8 @@ class UserBottomSheetView extends StatelessWidget {
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(12.0),
|
||||||
child: Material(
|
child: Material(
|
||||||
color:
|
color:
|
||||||
Theme.of(context).colorScheme.surfaceContainerHighest,
|
// ignore: deprecated_member_use
|
||||||
|
Theme.of(context).colorScheme.surfaceVariant,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(AppConfig.borderRadius),
|
BorderRadius.circular(AppConfig.borderRadius),
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
|
|
|
||||||
|
|
@ -64,13 +64,40 @@ parts:
|
||||||
stage-snaps:
|
stage-snaps:
|
||||||
- zenity-integration
|
- zenity-integration
|
||||||
|
|
||||||
|
flutter-git:
|
||||||
|
source: https://github.com/flutter/flutter.git
|
||||||
|
source-tag: 3.19.6
|
||||||
|
source-depth: 1
|
||||||
|
plugin: nil
|
||||||
|
override-build: |
|
||||||
|
mkdir -p $CRAFT_PART_INSTALL/usr/bin
|
||||||
|
mkdir -p $CRAFT_PART_INSTALL/usr/libexec
|
||||||
|
cp -r $CRAFT_PART_SRC $CRAFT_PART_INSTALL/usr/libexec/flutter
|
||||||
|
ln -s $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
|
||||||
|
ln -s $SNAPCRAFT_PART_INSTALL/usr/libexec/flutter/bin/dart $SNAPCRAFT_PART_INSTALL/usr/bin/dart
|
||||||
|
$CRAFT_PART_INSTALL/usr/bin/flutter doctor
|
||||||
|
build-packages:
|
||||||
|
- clang
|
||||||
|
- cmake
|
||||||
|
- curl
|
||||||
|
- libgtk-3-dev
|
||||||
|
- ninja-build
|
||||||
|
- unzip
|
||||||
|
- xz-utils
|
||||||
|
- zip
|
||||||
|
override-prime: ''
|
||||||
|
|
||||||
fluffychat:
|
fluffychat:
|
||||||
plugin: flutter
|
after: [flutter-git]
|
||||||
|
plugin: nil
|
||||||
source: .
|
source: .
|
||||||
override-build: |
|
override-build: |
|
||||||
# Workaround for Flutter build error:
|
# Workaround for Flutter build error:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
craftctl default
|
|
||||||
|
flutter build linux --release -v
|
||||||
|
mkdir -p $CRAFT_PART_INSTALL/bin/
|
||||||
|
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
|
||||||
build-packages:
|
build-packages:
|
||||||
- libjsoncpp-dev
|
- libjsoncpp-dev
|
||||||
- curl
|
- curl
|
||||||
|
|
@ -87,7 +114,7 @@ slots:
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
fluffychat:
|
fluffychat:
|
||||||
command: fluffychat
|
command: bin/fluffychat
|
||||||
extensions: [ gnome ]
|
extensions: [ gnome ]
|
||||||
plugs:
|
plugs:
|
||||||
- audio-playback
|
- audio-playback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue