Skip to content

Commit

Permalink
[Linux] Add MimeType for appimage and metainfo file support (#195)
Browse files Browse the repository at this point in the history
* feat(appimage): add supported mime type

* feat: add metainfo file support for linux packaging

* chore: update googleapis to support

* chore: uncommit pubspec.lock's of packages

* chore: uncommit pubspec.lock's of packages

* fix: lint fixes

* chore: bump googleapis_auth

* fix: use local path until publish

* feat: add example for supported_mime_type in appimage

* fix: code for copying metainfo in rpm

* fix: copy path for metainfo in rpm

* fix(rpm): also include metainfo

* fix(linux): change metainfo path relative to packaging directory

* fix(linux): update metainfo creation

* fix(appimage): don't check appstream on appimage

* chore: bump version

* feat: add metainfo working example

* chore: update doc for metainfo
  • Loading branch information
prateekmedia authored Jun 16, 2024
1 parent 4a8384e commit bb1bba8
Show file tree
Hide file tree
Showing 23 changed files with 143 additions and 2,472 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ keywords:

generic_name: Cool Application

# supported mime types that can be opened using this application
# supported_mime_type:
# - audio/mpeg

metainfo: linux/packaging/helloworld.appdata.xml

actions:
- name: Say Hi
label: say-hi
Expand Down
2 changes: 2 additions & 0 deletions examples/hello_world/linux/packaging/deb/make_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ generic_name: Music Application
# supported_mime_type:
# - audio/mpeg

metainfo: linux/packaging/helloworld.appdata.xml

# shown when right clicked the desktop entry icons
# actions:
# - Gallery
Expand Down
29 changes: 29 additions & 0 deletions examples/hello_world/linux/packaging/helloworld.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>hello_world</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<name>Hello World</name>
<summary>Sample project that is a demo for packaging</summary>
<description>
<p>The application can be used as a demo for the packaging of flutter application to various platform</p>
</description>
<launchable type="desktop-id">hello_world.desktop</launchable>
<url type="homepage">https://github.com/leanflutter/flutter_distributor/</url>
<screenshots>
<screenshot type="default">
<image>https://github.com/leanflutter/flutter_distributor/assets/41370460/bf942f1d-d26b-441d-b5b2-4ca210b5ea92</image>
</screenshot>
</screenshots>
<releases>
<release version="1.0.0" date="2024-06-16"/>
</releases>
<provides>
<id>hello_world.desktop</id>
</provides>
<content_rating type="oars-1.0" />
<developer id="io.github.lijy91">
<name>lijy91</name>
</developer>
<update_contact>[email protected]</update_contact>
</component>
2 changes: 2 additions & 0 deletions examples/hello_world/linux/packaging/rpm/make_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ keywords:

generic_name: Cool Application

metainfo: linux/packaging/helloworld.appdata.xml

categories:
- Cool
- Awesome
Expand Down
Loading

0 comments on commit bb1bba8

Please sign in to comment.