Skip to content

Commit 1218dc3

Browse files
author
kurwjan
committed
Update snap manifest
1 parent 3c49905 commit 1218dc3

File tree

1 file changed

+41
-7
lines changed

1 file changed

+41
-7
lines changed

snap/snapcraft.yaml

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: buchable
2-
version: 1.7.7
2+
version: 1.7.8
33
summary: Enjoy hearing self-hosted audiobooks.
44
description: testtesttesttestttest
55
website: https://github.com/Vito0912/abs_flutter
@@ -8,42 +8,76 @@ source-code: https://github.com/Vito0912/abs_flutter
88
icon: snap/gui/buchable.png
99

1010
confinement: strict
11-
base: core22
11+
base: core22 # We could also use core24.
1212
grade: stable
1313
license: BSD-3-Clause
1414

15+
# For now we just stay on x64_86
1516
architectures:
1617
- build-on: amd64
18+
build-for: amd64
1719

1820
slots:
19-
mpris:
21+
mpris: # We need this so package:audio_service has proper permissions to function.
2022
interface: mpris
2123
name: ABSPlayback
2224

2325
apps:
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

3948
parts:
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

Comments
 (0)