From ab7cafd186c852b4312d5dee47bc1e0e6d9b7ae7 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 30 Sep 2024 13:31:24 -0400 Subject: [PATCH] feat: add appstream metadata --- data/com.system76.CosmicApplets.metainfo.xml | 58 ++++++++++++++++++++ justfile | 9 ++- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 data/com.system76.CosmicApplets.metainfo.xml diff --git a/data/com.system76.CosmicApplets.metainfo.xml b/data/com.system76.CosmicApplets.metainfo.xml new file mode 100644 index 00000000..2432b2d1 --- /dev/null +++ b/data/com.system76.CosmicApplets.metainfo.xml @@ -0,0 +1,58 @@ + + + com.system76.CosmicApplets + CC0-1.0 + GPL-3.0-only + COSMIC + System76 + ashley@system76.com + https://github.com/pop-os/cosmic-applets + https://github.com/pop-os/cosmic-applets + COSMIC Applets + Applets for the COSMIC panel + +

Applets for the COSMIC panel

+
+ com.system76.CosmicAppletAppList.desktop + com.system76.CosmicAppletAudio.desktop + com.system76.CosmicAppletBattery.desktop + com.system76.CosmicAppletBluetooth.desktop + com.system76.CosmicAppletInputSources.desktop + com.system76.CosmicAppletMinimize.desktop + com.system76.CosmicAppletNetwork.desktop + com.system76.CosmicAppletNotifications.desktop + com.system76.CosmicAppletPower.desktop + com.system76.CosmicAppletStatusArea.desktop + com.system76.CosmicAppletTiling.desktop + com.system76.CosmicAppletTime.desktop + com.system76.CosmicAppletWorkspaces.desktop + com.system76.CosmicAppletAppButton.desktop + com.system76.CosmicAppletWorkspacesButton.desktop + com.system76.CosmicAppletLauncherButton.desktop + com.system76.CosmicApplet.desktop + https://raw.githubusercontent.com/pop-os/cosmic-applets/master/cosmic-app-list/data/icons/scalable/apps/com.system76.CosmicAppList.svg + + + + com.system76.CosmicApplet + + text/plain + + + cosmic-app-list + cosmic-applet-audio + cosmic-applet-battery + cosmic-applet-bluetooth + cosmic-applet-cosmic-panel-button + cosmic-applet-input-sources + cosmic-applet-minimize + cosmic-applet-network + cosmic-applet-notifications + cosmic-applet-power + cosmic-applet-status-area + cosmic-applet-tiling + cosmic-applet-time + cosmic-applet-workspaces + + +
\ No newline at end of file diff --git a/justfile b/justfile index c798ba82..5680f1bb 100644 --- a/justfile +++ b/justfile @@ -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 @@ -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: