Skip to content

Commit

Permalink
feat: add appstream metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and mmstick committed Oct 2, 2024
1 parent 4591eb8 commit ab7cafd
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
58 changes: 58 additions & 0 deletions data/com.system76.CosmicApplets.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.system76.CosmicApplets</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>
<project_group>COSMIC</project_group>
<developer_name>System76</developer_name>
<update_contact>[email protected]</update_contact>
<url type="homepage">https://github.com/pop-os/cosmic-applets</url>
<url type="bugtracker">https://github.com/pop-os/cosmic-applets</url>
<name>COSMIC Applets</name>
<summary>Applets for the COSMIC panel</summary>
<description>
<p>Applets for the COSMIC panel</p>
</description>
<launchable type="desktop-id">com.system76.CosmicAppletAppList.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletAudio.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletBattery.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletBluetooth.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletInputSources.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletMinimize.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletNetwork.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletNotifications.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletPower.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletStatusArea.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletTiling.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletTime.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletWorkspaces.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletAppButton.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletWorkspacesButton.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicAppletLauncherButton.desktop</launchable>
<launchable type="desktop-id">com.system76.CosmicApplet.desktop</launchable>
<icon type="remote" width="256" height="256">https://raw.githubusercontent.com/pop-os/cosmic-applets/master/cosmic-app-list/data/icons/scalable/apps/com.system76.CosmicAppList.svg</icon>
<screenshots>
</screenshots>
<provides>
<id>com.system76.CosmicApplet</id>
<mimetypes>
<mimetype>text/plain</mimetype>
</mimetypes>
<binaries>
<binary>cosmic-app-list</binary>
<binary>cosmic-applet-audio</binary>
<binary>cosmic-applet-battery</binary>
<binary>cosmic-applet-bluetooth</binary>
<binary>cosmic-applet-cosmic-panel-button</binary>
<binary>cosmic-applet-input-sources</binary>
<binary>cosmic-applet-minimize</binary>
<binary>cosmic-applet-network</binary>
<binary>cosmic-applet-notifications</binary>
<binary>cosmic-applet-power</binary>
<binary>cosmic-applet-status-area</binary>
<binary>cosmic-applet-tiling</binary>
<binary>cosmic-applet-time</binary>
<binary>cosmic-applet-workspaces</binary>
</binaries>
</provides>
</component>
9 changes: 8 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ default-schema-target := sharedir / 'cosmic'

cosmic-applets-bin := prefixdir / 'cosmic-applets'

metainfo := 'com.system76.CosmicApplets.metainfo.xml'
metainfo-src := 'data' / metainfo
metainfo-dst := clean(rootdir / prefix) / 'share' / 'metainfo' / metainfo

default: build-release

# Compiles with debug profile
Expand Down Expand Up @@ -50,8 +54,11 @@ _install_applet id name: (_install_icons name) \

_install_button id name: (_install_icons name) (_install_desktop name + '/data/' + id + '.desktop')

_install_metainfo:
install -Dm0644 {{metainfo-src}} {{metainfo-dst}}

# Installs files into the system
install: (_install_bin 'cosmic-applets') (_link_applet 'cosmic-panel-button') (_install_applet 'com.system76.CosmicAppList' 'cosmic-app-list') (_install_default_schema 'cosmic-app-list') (_install_applet 'com.system76.CosmicAppletAudio' 'cosmic-applet-audio') (_install_applet 'com.system76.CosmicAppletInputSources' 'cosmic-applet-input-sources') (_install_applet 'com.system76.CosmicAppletBattery' 'cosmic-applet-battery') (_install_applet 'com.system76.CosmicAppletBluetooth' 'cosmic-applet-bluetooth') (_install_applet 'com.system76.CosmicAppletMinimize' 'cosmic-applet-minimize') (_install_applet 'com.system76.CosmicAppletNetwork' 'cosmic-applet-network') (_install_applet 'com.system76.CosmicAppletNotifications' 'cosmic-applet-notifications') (_install_applet 'com.system76.CosmicAppletPower' 'cosmic-applet-power') (_install_applet 'com.system76.CosmicAppletStatusArea' 'cosmic-applet-status-area') (_install_applet 'com.system76.CosmicAppletTiling' 'cosmic-applet-tiling') (_install_applet 'com.system76.CosmicAppletTime' 'cosmic-applet-time') (_install_applet 'com.system76.CosmicAppletWorkspaces' 'cosmic-applet-workspaces') (_install_button 'com.system76.CosmicPanelAppButton' 'cosmic-panel-app-button') (_install_button 'com.system76.CosmicPanelLauncherButton' 'cosmic-panel-launcher-button') (_install_button 'com.system76.CosmicPanelWorkspacesButton' 'cosmic-panel-workspaces-button')
install: (_install_bin 'cosmic-applets') (_link_applet 'cosmic-panel-button') (_install_applet 'com.system76.CosmicAppList' 'cosmic-app-list') (_install_default_schema 'cosmic-app-list') (_install_applet 'com.system76.CosmicAppletAudio' 'cosmic-applet-audio') (_install_applet 'com.system76.CosmicAppletInputSources' 'cosmic-applet-input-sources') (_install_applet 'com.system76.CosmicAppletBattery' 'cosmic-applet-battery') (_install_applet 'com.system76.CosmicAppletBluetooth' 'cosmic-applet-bluetooth') (_install_applet 'com.system76.CosmicAppletMinimize' 'cosmic-applet-minimize') (_install_applet 'com.system76.CosmicAppletNetwork' 'cosmic-applet-network') (_install_applet 'com.system76.CosmicAppletNotifications' 'cosmic-applet-notifications') (_install_applet 'com.system76.CosmicAppletPower' 'cosmic-applet-power') (_install_applet 'com.system76.CosmicAppletStatusArea' 'cosmic-applet-status-area') (_install_applet 'com.system76.CosmicAppletTiling' 'cosmic-applet-tiling') (_install_applet 'com.system76.CosmicAppletTime' 'cosmic-applet-time') (_install_applet 'com.system76.CosmicAppletWorkspaces' 'cosmic-applet-workspaces') (_install_button 'com.system76.CosmicPanelAppButton' 'cosmic-panel-app-button') (_install_button 'com.system76.CosmicPanelLauncherButton' 'cosmic-panel-launcher-button') (_install_button 'com.system76.CosmicPanelWorkspacesButton' 'cosmic-panel-workspaces-button') (_install_metainfo)

# Vendor Cargo dependencies locally
vendor:
Expand Down

0 comments on commit ab7cafd

Please sign in to comment.