upgrade snap packaging

This commit is contained in:
Salem Yaslem 2023-10-28 19:25:29 +03:00
parent 591a671a8d
commit d10fdf7c0a

View File

@ -1,5 +1,5 @@
name: blue-recorder # you probably want to 'snapcraft register <name>' name: blue-recorder # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap base: core22 # the base snap is the execution environment for this snap
version: git # just for humans, typically '1.2+git' or '1.3.2' version: git # just for humans, typically '1.2+git' or '1.3.2'
summary: A simple screen recorder for Linux desktop. Supports Wayland & Xorg # 79 char long summary summary: A simple screen recorder for Linux desktop. Supports Wayland & Xorg # 79 char long summary
description: | description: |
@ -7,48 +7,67 @@ description: |
The following formats are currently supported: mkv, avi, mp4, wmv, gif and nut. You can stop the recording process easily by right-clicking the icon and choosing "Stop Record". Or middle-clicking the recording icon in the notifications area (but doesn't work on all interfaces). The following formats are currently supported: mkv, avi, mp4, wmv, gif and nut. You can stop the recording process easily by right-clicking the icon and choosing "Stop Record". Or middle-clicking the recording icon in the notifications area (but doesn't work on all interfaces).
You can choose the audio input source you want from the list. You can also set the default values you want by simply changing them in the interface, and the program will save them for you for the next time you open it. You can choose the audio input source you want from the list. You can also set the default values you want by simply changing them in the interface, and the program will save them for you for the next time you open it.
Based on GREEN RECORDER but rewritten in RUST Based on GREEN RECORDER but rewritten in RUST
adopt-info: blue-recorder
grade: stable # must be 'stable' to release into candidate/stable channels grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots confinement: devmode # use 'strict' once you have the right plugs and slots
compression: lzo compression: lzo
parts: parts:
rust-deps:
plugin: nil
build-packages:
- curl
override-pull: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
blue-recorder: blue-recorder:
plugin: rust plugin: rust
source: . source: .
after: [rust-deps]
stage-snaps: stage-snaps:
- ffmpeg - ffmpeg
stage-packages: stage-packages:
- libappindicator3-1
- x11-utils - x11-utils
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-ugly
- gstreamer1.0-libav
build-packages: build-packages:
- libappindicator3-dev
- clang - clang
- gettext - gettext
- build-essential - build-essential
- libgstreamer-plugins-bad1.0-dev
- libgstreamer-plugins-base1.0-dev
- libgstreamer1.0-dev
override-pull: | # set version from Cargo.toml
craftctl default
craftctl set version=$(cat Cargo.toml | grep version | head -n1 | cut -d"=" -f2 | awk '{$1=$1};1' | tr -d '"')
override-build: | override-build: |
snapcraftctl build craftctl default
cp -a data interfaces po $SNAPCRAFT_PART_INSTALL cp -a data interfaces po $CRAFT_PART_INSTALL
cp -a target/release/blue-recorder $SNAPCRAFT_PART_INSTALL/blue-recorder cp -a target/release/blue-recorder $CRAFT_PART_INSTALL/blue-recorder
apps: apps:
blue-recorder: blue-recorder:
command: blue-recorder command: blue-recorder
desktop: data/snap/blue-recorder.desktop desktop: data/snap/blue-recorder.desktop
extensions: extensions:
- gnome-3-28 - gnome
plugs: plugs:
- desktop - desktop
- home - home
- audio-playback - audio-playback
- audio-record - audio-record
- wayland
- x11
- screencast-legacy # for wayland support - screencast-legacy # for wayland support
slots: # slots:
- dbus-daemon # - dbus-daemon
common-id: sa.sy.blue-recorder # common-id: sa.sy.blue-recorder
slots: # slots:
dbus-daemon: # dbus-daemon:
interface: dbus # interface: dbus
bus: session # bus: session
name: sa.sy.blue-recorder # name: sa.sy.blue-recorder