Update flatpak build

1- New Icon size 128x128
2- Remove full access to dbus
3- Completed requirements from flathub
4- Cleanup docs
5- Enable libvorbis and libx264
This commit is contained in:
suliman altassan 2021-03-12 17:52:39 +03:00
parent a64bab5b2e
commit 2da85557d0

View File

@ -1,8 +1,3 @@
# TO DO:
# 1- Resize icon to 128x128
# 2- Remove full access to dbus. not allowed in flathub https://github.com/flathub/flathub/wiki/App-Requirements#dbus-access
# 3- Add more requirements to sa.sy.bluerecorder.metainfo.xml
# 4- Clean more files to get small pkg size
app-id: sa.sy.bluerecorder app-id: sa.sy.bluerecorder
runtime: org.gnome.Platform runtime: org.gnome.Platform
runtime-version: "3.38" runtime-version: "3.38"
@ -11,6 +6,8 @@ sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable - org.freedesktop.Sdk.Extension.rust-stable
cleanup: cleanup:
- /share/man - /share/man
- /share/doc
- /share/gtk-doc
command: /app/opt/blue-recorder command: /app/opt/blue-recorder
finish-args: finish-args:
- --filesystem=home - --filesystem=home
@ -19,8 +16,8 @@ finish-args:
- --socket=wayland - --socket=wayland
- --socket=pulseaudio - --socket=pulseaudio
- --device=dri - --device=dri
- --socket=system-bus - --talk-name=org.gnome.Shell.Screencast
- --socket=session-bus - --talk-name=org.kde.StatusNotifierWatcher
modules: modules:
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json - shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- shared-modules/dbus-glib/dbus-glib-0.110.json - shared-modules/dbus-glib/dbus-glib-0.110.json
@ -33,10 +30,10 @@ modules:
CARGO_HOME: "/run/build/bluerecorder/cargo" CARGO_HOME: "/run/build/bluerecorder/cargo"
RUST_BACKTRACE: "1" RUST_BACKTRACE: "1"
build-commands: build-commands:
- mkdir -p $FLATPAK_DEST/opt ${FLATPAK_DEST}/share/icons/hicolor/96x96/apps/ - mkdir -p $FLATPAK_DEST/opt $FLATPAK_DEST/share/icons/hicolor/128x128/apps/
- install -D flatpak/sa.sy.bluerecorder.metainfo.xml -t ${FLATPAK_DEST}/usr/share/metainfo/ - install -D flatpak/sa.sy.bluerecorder.metainfo.xml -t $FLATPAK_DEST/usr/share/metainfo/
- install -D flatpak/sa.sy.bluerecorder.desktop -t ${FLATPAK_DEST}/share/applications/ - install -D flatpak/sa.sy.bluerecorder.desktop -t $FLATPAK_DEST/share/applications/
- cp -v data/blue-recorder.png ${FLATPAK_DEST}/share/icons/hicolor/96x96/apps/sa.sy.bluerecorder.png - cp -v data/blue-recorder@x128.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/sa.sy.bluerecorder.png
- cargo --offline fetch --manifest-path Cargo.toml --verbose - cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose - cargo --offline build --release --verbose
- cp target/release/blue-recorder $FLATPAK_DEST/opt - cp target/release/blue-recorder $FLATPAK_DEST/opt
@ -44,8 +41,9 @@ modules:
sources: sources:
- cargo-sources.json - cargo-sources.json
- type: git - type: git
url: file:///home/suliman/git/my-fork-blue-recorder url: https://github.com/me00001/blue-recorder.git
#url: https://github.com/xlmnxp/blue-recorder.git #url: https://github.com/xlmnxp/blue-recorder.git
#commit:
- name: xwininfo - name: xwininfo
sources: sources:
@ -53,12 +51,29 @@ modules:
url: https://xorg.freedesktop.org/archive/individual/app/xwininfo-1.1.5.tar.bz2 url: https://xorg.freedesktop.org/archive/individual/app/xwininfo-1.1.5.tar.bz2
md5: 26d46f7ef0588d3392da3ad5802be420 md5: 26d46f7ef0588d3392da3ad5802be420
- name: libx264
config-opts:
- --enable-shared
- --disable-cli
sources:
- type: git
url: https://code.videolan.org/videolan/x264.git
branch: stable
- name: ffmpeg - name: ffmpeg
config-opts: config-opts:
- --enable-shared - --enable-shared
- --disable-static - --disable-static
- --disable-doc - --disable-doc
- --disable-htmlpages
- --disable-manpages
- --disable-podpages
- --disable-txtpages
- --enable-libpulse - --enable-libpulse
- --enable-gpl
- --enable-libx264
- --enable-version3
- --enable-libvorbis
sources: sources:
- type: archive - type: archive
url: http://www.ffmpeg.org/releases/ffmpeg-4.3.2.tar.xz url: http://www.ffmpeg.org/releases/ffmpeg-4.3.2.tar.xz