1
0
Fork 0
mirror of synced 2024-05-01 11:02:53 +12:00

Add Flatpak support (#203)

* Make a flatpak manifest, the permissions are not set properly.

* Move to separate flatpak dir

* Rewrite in yaml

* Update sources

* Update flatpak to 2.3.0

* Remove PulseAudio support

* Add metainfo file

* Use the right files

* Update metadata file

* Polish manifest and improve metadata

* Improve metadata

* Switch to metainfo

* Fix version number

Co-authored-by: Lionir <git@thelion.website>
This commit is contained in:
Proprietary Chrome-chan 2021-01-20 13:14:53 +00:00 committed by GitHub
parent 5751d8a723
commit a5d37eba4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3731 additions and 0 deletions

3668
flatpak/cargo-sources.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.github.qarmin.Czkawka</id>
<name>Czkawka</name>
<summary>Multi functional app to find duplicates, empty folders, similar images etc.</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<description>
<p>
Czkawka is written in Rust, simple, fast and easy to use app to remove unnecessary files from your computer.
</p>
</description>
<launchable type="desktop-id">com.github.qarmin.Czkawka.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://user-images.githubusercontent.com/41945903/104711404-9cbb7400-5721-11eb-904d-9677c189f7ab.gif</image>
</screenshot>
</screenshots>
<releases>
<release version="2.3.0" date="2021-01-15"/>
</releases>
<content_rating type="oars-1.0"/>
<developer_name>Rafał Mikrut</developer_name>
<url type="homepage">https://github.com/qarmin/czkawka</url>
<url type="bugtracker">https://github.com/qarmin/czkawka/issues</url>
<url type="donation">https://github.com/sponsors/qarmin</url>
</component>

View file

@ -0,0 +1,36 @@
app-id: com.github.qarmin.Czkawka
runtime: org.gnome.Platform
runtime-version: '3.38'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: czkawka_gui
rename-icon: com.github.qarmin.czkawka
rename-desktop-file: com.github.qarmin.czkawka.desktop
finish-args:
- "--share=ipc"
- "--socket=fallback-x11"
- "--socket=wayland"
- "--filesystem=host"
- "--device=dri"
build-options:
append-path: "/usr/lib/sdk/rust-stable/bin"
env:
CARGO_HOME: "/run/build/czkawka_gui/cargo"
modules:
- name: czkawka_gui
buildsystem: simple
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml
- cargo --offline build --release
- install -Dm755 ./target/release/czkawka_gui -t /app/bin/
- install -Dm644 ./data/icons/com.github.qarmin.czkawka.svg -t /app/share/icons/hicolor/scalable/apps/
- install -Dm644 ./pkgs/com.github.qarmin.czkawka.desktop -t /app/share/applications/
- install -Dm644 ./flatpak/com.github.qarmin.Czkawka.metainfo.xml -t /app/share/metainfo
sources:
- type: dir
path: "."
- cargo-sources.json
- type: git
url: https://github.com/qarmin/czkawka.git
tag: 2.3.0