Skip to content

Commit

Permalink
snapcraft: Add GStreamer dependencies to snapcraft.yaml
Browse files Browse the repository at this point in the history
Ensure GStreamer is available both at build time and runtime by adding
the necessary packages to build-packages and stage-packages. This resolves
issues with missing GStreamer components during Flutter Linux app builds.
  • Loading branch information
calcitem committed Mar 31, 2024
1 parent 8e1e0d6 commit 7654ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ parts:
plugin: flutter
flutter-target: src/ui/flutter_app/lib/main.dart
source: .
build-packages: [git, g++, libstdc++6, libasound2-dev, wget, clang, cmake, ninja-build, pkg-config, libgtk-3-dev]
stage-packages: [g++, libstdc++6, libasound2]
build-packages: [git, g++, libstdc++6, libasound2-dev, wget, clang, cmake, ninja-build, pkg-config, libgtk-3-dev, libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev]
stage-packages: [g++, libstdc++6, libasound2, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good]
override-build: |
set -x
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.19.4-stable.tar.xz
Expand All @@ -62,7 +62,7 @@ parts:
cp -r build/linux/x64/release/bundle/* ${SNAPCRAFT_PART_INSTALL}/usr/local/bin/
after:
- alsa

alsa:
plugin: nil
source: https://github.com/diddledan/snapcraft-alsa.git
Expand Down

0 comments on commit 7654ddc

Please sign in to comment.