From d318607d93e7c198207a62cc6fdd5daea4daf93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 10 Nov 2024 23:56:34 +0100 Subject: [PATCH] Adhere to current AppStream specification. --- appstream.patch | 2 - appstream2.patch | 86 +++++++++++++++++++++++++++++++ icon256.patch | 2 - icon64.patch | 2 - io.github.labsquare.CutePeaks.yml | 4 +- prefix.patch | 2 - 6 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 appstream2.patch diff --git a/appstream.patch b/appstream.patch index 848ab55..8a30c5e 100644 --- a/appstream.patch +++ b/appstream.patch @@ -1,6 +1,4 @@ From 0909224a1dba32198de45c44984e0c1d2e59634b Mon Sep 17 00:00:00 2001 -Message-Id: <0909224a1dba32198de45c44984e0c1d2e59634b.1671456132.git.matthias@mailaender.name> -From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 19 Dec 2022 14:22:09 +0100 Subject: [PATCH] Add an AppStream metadata file. diff --git a/appstream2.patch b/appstream2.patch new file mode 100644 index 0000000..1f0e7b7 --- /dev/null +++ b/appstream2.patch @@ -0,0 +1,86 @@ +From a71caff10ad8443663e6a841a3f55c99c1153249 Mon Sep 17 00:00:00 2001 +Date: Sun, 10 Nov 2024 23:53:34 +0100 +Subject: [PATCH] Adhere to AppStream specification. + +--- + cutepeaks.pro | 2 +- + ...epeaks.png => io.github.labsquare.CutePeaks.png} | Bin + ...desktop => io.github.labsquare.CutePeaks.desktop | 2 +- + io.github.labsquare.CutePeaks.metainfo.xml | 7 +++++-- + src/src.pro | 4 ++-- + 5 files changed, 9 insertions(+), 6 deletions(-) + rename icon/256/{cutepeaks.png => io.github.labsquare.CutePeaks.png} (100%) + rename cutepeaks.desktop => io.github.labsquare.CutePeaks.desktop (81%) + +diff --git a/cutepeaks.pro b/cutepeaks.pro +index 9601ebd..00027b3 100644 +--- a/cutepeaks.pro ++++ b/cutepeaks.pro +@@ -14,7 +14,7 @@ linux-g++ { + icon64.path = $$PREFIX/share/icons/hicolor/64x64/apps + icon64.files += cutepeaks.png + icon256.path = $$PREFIX/share/icons/hicolor/256x256/apps +- icon256.files += icon/256/cutepeaks.png ++ icon256.files += icon/256/io.github.labsquare.CutePeaks.png + + INSTALLS += icon64 + INSTALLS += icon256 +diff --git a/icon/256/cutepeaks.png b/icon/256/io.github.labsquare.CutePeaks.png +similarity index 100% +rename from icon/256/cutepeaks.png +rename to icon/256/io.github.labsquare.CutePeaks.png +diff --git a/cutepeaks.desktop b/io.github.labsquare.CutePeaks.desktop +similarity index 81% +rename from cutepeaks.desktop +rename to io.github.labsquare.CutePeaks.desktop +index 759636f..a89f42f 100644 +--- a/cutepeaks.desktop ++++ b/io.github.labsquare.CutePeaks.desktop +@@ -3,6 +3,6 @@ Type=Application + Name=cutepeaks + Comment=A simple sanger trace file viewer + Exec=cutepeaks %F +-Icon=cutepeaks ++Icon=io.github.labsquare.CutePeaks + Terminal=false + Categories=Science;Biology;Qt; +diff --git a/io.github.labsquare.CutePeaks.metainfo.xml b/io.github.labsquare.CutePeaks.metainfo.xml +index e55a93f..1145633 100644 +--- a/io.github.labsquare.CutePeaks.metainfo.xml ++++ b/io.github.labsquare.CutePeaks.metainfo.xml +@@ -3,8 +3,10 @@ + + io.github.labsquare.CutePeaks + CutePeaks +- standalone Sanger trace viewer +- Labsquare ++ Standalone Sanger trace viewer ++ ++ Labsquare ++ + CC0-1.0 + GPL-3.0+ + +@@ -29,4 +31,5 @@ + https://labsquare.github.io/CutePeaks/ + https://github.com/labsquare/CutePeaks/issues + ++ io.github.labsquare.CutePeaks.desktop + +diff --git a/src/src.pro b/src/src.pro +index 337420b..8c52597 100644 +--- a/src/src.pro ++++ b/src/src.pro +@@ -28,10 +28,10 @@ RESOURCES += \ + + + unix { +-desktop.files += ../cutepeaks.desktop ++desktop.files += ../io.github.labsquare.CutePeaks.desktop + desktop.path = $$PREFIX/share/applications/ + +-icons.files += ../cutepeaks.png ++icons.files += ../io.github.labsquare.CutePeaks.png + icons.path = $$PREFIX/share/icons/hicolor/64x64/apps + + appdata.files += ../io.github.labsquare.CutePeaks.metainfo.xml diff --git a/icon256.patch b/icon256.patch index 2c2ec09..3486a7a 100644 --- a/icon256.patch +++ b/icon256.patch @@ -1,6 +1,4 @@ From c7b926dae647de4c382afa5efe14b85a0a04b0a9 Mon Sep 17 00:00:00 2001 -Message-Id: -From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 19 Dec 2022 14:38:06 +0100 Subject: [PATCH] Generate a 256x256 one. diff --git a/icon64.patch b/icon64.patch index c208139..ab582d5 100644 --- a/icon64.patch +++ b/icon64.patch @@ -1,6 +1,4 @@ From cbf443482b8f4996a2f68bea6e959cbf459a6057 Mon Sep 17 00:00:00 2001 -Message-Id: -From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 19 Dec 2022 14:37:41 +0100 Subject: [PATCH 1/2] This is actually 64x64. diff --git a/io.github.labsquare.CutePeaks.yml b/io.github.labsquare.CutePeaks.yml index 2fc70b3..32e7c3f 100644 --- a/io.github.labsquare.CutePeaks.yml +++ b/io.github.labsquare.CutePeaks.yml @@ -3,8 +3,6 @@ runtime: org.kde.Platform runtime-version: '5.15-23.08' sdk: org.kde.Sdk command: cutepeaks -rename-icon: cutepeaks -rename-desktop-file: cutepeaks.desktop finish-args: - --share=ipc - --socket=wayland @@ -31,3 +29,5 @@ modules: - type: patch path: icon256.patch use-git: true + - type: patch + path: appstream2.patch diff --git a/prefix.patch b/prefix.patch index 543a7ca..8b779b1 100644 --- a/prefix.patch +++ b/prefix.patch @@ -1,6 +1,4 @@ From 71cf453cfce4dc4265b06b6ebcbd1a9919b8bd2c Mon Sep 17 00:00:00 2001 -Message-Id: <71cf453cfce4dc4265b06b6ebcbd1a9919b8bd2c.1671455296.git.matthias@mailaender.name> -From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 19 Dec 2022 14:08:12 +0100 Subject: [PATCH] Configurable prefix