11name : buchable
2- version : 1.7.7
2+ version : 1.7.8
33summary : Enjoy hearing self-hosted audiobooks.
44description : testtesttesttestttest
55website : https://github.com/Vito0912/abs_flutter
@@ -8,42 +8,76 @@ source-code: https://github.com/Vito0912/abs_flutter
88icon : snap/gui/buchable.png
99
1010confinement : strict
11- base : core22
11+ base : core22 # We could also use core24.
1212grade : stable
1313license : BSD-3-Clause
1414
15+ # For now we just stay on x64_86
1516architectures :
1617 - build-on : amd64
18+ build-for : amd64
1719
1820slots :
19- mpris :
21+ mpris : # We need this so package:audio_service has proper permissions to function.
2022 interface : mpris
2123 name : ABSPlayback
2224
2325apps :
2426 buchable :
25- command : abs_flutter
26- extensions : [gnome]
27+ command : abs_flutter # Name of the executable file.
28+ extensions : [gnome] # Provides various graphics libraries (like GTK) or so.
2729 plugs :
30+ # Support for every desktop out there.
2831 - desktop
2932 - desktop-legacy
3033 - wayland
34+
3135 - network
36+
37+ # No auto-connect! Need to ask for permission. (package:ConnectivityPlus needs it to access NetworkManager)
3238 - network-manager-observe
39+
40+ # There are some ALSA warnings/errors but they can be ignored.
3341 - audio-playback
3442 slots :
3543 - mpris
3644 environment :
45+ # Needed because the app needs to access libmpv and other associated libraries.
3746 LD_LIBRARY_PATH : $LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/lapack:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/caca:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/vdpau:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/mfx
3847
3948parts :
40- buchable :
49+ buchable : # Entrypoint for the app.
4150 source : .
4251 plugin : flutter
4352 flutter-target : lib/main.dart
53+
54+ # Needed for permissions
4455 build-packages :
4556 - libsecret-1-dev
4657 - libjsoncpp-dev
4758 stage-packages :
4859 - libsecret-1-0
49- - libmpv-dev
60+
61+ # Needed for MediaKit
62+ - libmpv-dev
63+
64+ # This part removes all the files in this snap which already exist in
65+ # connected content and base snaps. Since these files will be available
66+ # at runtime from the content and base snaps, they do not need to be
67+ # included in this snap itself.
68+ #
69+ # More info: https://forum.snapcraft.io/t/reducing-the-size-of-desktop-snaps/17280#heading--cleanup-part
70+ #
71+ cleanup :
72+ after : # Make this part run last; list all your other parts here
73+ - buchable
74+ plugin : nil
75+ build-snaps : # List all content-snaps and base snaps you're using here
76+ - core22
77+ - gtk-common-themes
78+ - gnome-42-2204 # (core22 version)
79+ override-prime : |
80+ set -eux
81+ for snap in "core22" "gtk-common-themes" "gnome-42-2204"; do # List all content-snaps and base snaps you're using here
82+ cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$CRAFT_PRIME/{}" \;
83+ done
0 commit comments