Merge pull request #2 from me00001/master

Add flatpak build files 
thank you @me00001
This commit is contained in:
Salem Yaslem 2021-04-27 21:07:27 +03:00 committed by GitHub
commit 78ac53946f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 2101 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "flatpak/shared-modules"]
path = flatpak/shared-modules
url = https://github.com/flathub/shared-modules.git

1965
flatpak/cargo-sources.json Normal file

File diff suppressed because it is too large Load Diff

3
flatpak/flathub.json Normal file
View File

@ -0,0 +1,3 @@
{
"only-arches": ["x86_64"]
}

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Blue Recorder
Comment=A simple screen recorder for Linux desktop. Supports Wayland & Xorg
Icon=sa.sy.bluerecorder
Exec=/app/opt/blue-recorder
Categories=Graphics;GTK

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>sa.sy.bluerecorder</id>
<name>Blue Recorder</name>
<summary>A simple screen recorder for Linux desktop. Supports Wayland &amp; Xorg</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>
<description>
<p>
A simple desktop recorder for Linux systems. Built using Rust, GTK+ 3 and ffmpeg. It supports recording audio and video on almost all Linux interfaces with support for Wayland display server on GNOME session. The following formats are currently supported: mkv, avi, mp4, wmv, gif and nut (And only WebM for Wayland&apos;s GNOME session). You can stop the recording process easily by right-clicking the icon and choosing &quot;Stop Record&quot;. Or middle-clicking the recording icon in the notifications area (but doesn&apos;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. Based on GREEN RECORDER but rewritten in RUST
</p>
</description>
<launchable type="desktop-id">sa.sy.bluerecorder.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://dashboard.snapcraft.io/site_media/appmedia/2021/02/blue-recorder.png</image>
</screenshot>
</screenshots>
<icon>sa.sy.bluerecorder</icon>
<content_rating type="oars-1.0" />
<categories>
<category>Graphics</category>
<category>GTK</category>
</categories>
<provides>
<binary>blue-recorder</binary>
</provides>
<url type="homepage">https://github.com/xlmnxp/blue-recorder</url>
<releases>
<release version="0+git.4c4762a" date="2021-03-09"/>
</releases>
</component>

View File

@ -0,0 +1,80 @@
app-id: sa.sy.bluerecorder
runtime: org.gnome.Platform
runtime-version: "3.38"
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
cleanup:
- /share/man
- /share/doc
- /share/gtk-doc
command: /app/opt/blue-recorder
finish-args:
- --filesystem=home
- --share=ipc
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --device=dri
- --talk-name=org.gnome.Shell.Screencast
- --talk-name=org.kde.StatusNotifierWatcher
modules:
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- shared-modules/dbus-glib/dbus-glib-0.110.json
- name: bluerecorder
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: "/run/build/bluerecorder/cargo"
RUST_BACKTRACE: "1"
build-commands:
- 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.desktop -t $FLATPAK_DEST/share/applications/
- 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 build --release --verbose
- cp target/release/blue-recorder $FLATPAK_DEST/opt
- cp -a data interfaces po $FLATPAK_DEST/opt
sources:
- cargo-sources.json
- type: git
url: https://github.com/me00001/blue-recorder.git
#url: https://github.com/xlmnxp/blue-recorder.git
#commit:
- name: xwininfo
sources:
- type: archive
url: https://xorg.freedesktop.org/archive/individual/app/xwininfo-1.1.5.tar.bz2
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
config-opts:
- --enable-shared
- --disable-static
- --disable-doc
- --disable-htmlpages
- --disable-manpages
- --disable-podpages
- --disable-txtpages
- --enable-libpulse
- --enable-gpl
- --enable-libx264
- --enable-version3
- --enable-libvorbis
sources:
- type: archive
url: http://www.ffmpeg.org/releases/ffmpeg-4.3.2.tar.xz
md5: 29529337d9b8f794a6142db10b717ec5

@ -0,0 +1 @@
Subproject commit de8d46f177c1ccdd7c277200d0857c9b88e135e9