From cf85bd8edea46f3d8f329ff3dd447f007116a075 Mon Sep 17 00:00:00 2001 From: scy <1061371349@qq.com> Date: Sun, 29 Oct 2023 20:33:04 +0800 Subject: [PATCH] build: add app sprinter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增应用sprinter --- io.github.sprinter/linglong.yaml | 20 ++++++++++++++++++++ io.github.sprinter/patches/fix.patch | 24 ++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 io.github.sprinter/linglong.yaml create mode 100644 io.github.sprinter/patches/fix.patch diff --git a/io.github.sprinter/linglong.yaml b/io.github.sprinter/linglong.yaml new file mode 100644 index 000000000..c548b46bb --- /dev/null +++ b/io.github.sprinter/linglong.yaml @@ -0,0 +1,20 @@ +package: + id: io.github.sprinter + name: sprinter + version: 0.0.1 + kind: app + description: | + Simple Qt application based on dmenu. + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/hluk/sprinter.git + commit: 396c84bf22695dcb5a51f8e8b7375ca7101218bd + patch: patches/fix.patch + +build: + kind: cmake diff --git a/io.github.sprinter/patches/fix.patch b/io.github.sprinter/patches/fix.patch new file mode 100644 index 000000000..db98d1a57 --- /dev/null +++ b/io.github.sprinter/patches/fix.patch @@ -0,0 +1,24 @@ +--- ../CMakeLists.txt 2023-10-28 12:09:28.601666654 +0800 ++++ ../CMakeLists.txt 2023-10-28 10:03:47.639970000 +0800 +@@ -39,6 +39,20 @@ + ${QT_LIBRARIES} + ${sprinter_LIBRARIES} + ) ++# 设置.desktop文件的内容 ++set(DESKTOP_FILE_CONTENT " ++[Desktop Entry] ++Type=Application ++Name=sprinter ++Exec=sprinter ++Icon=/source/resources/icon ++Categories=Utility; ++") + +-install(TARGETS sprinter DESTINATION bin) ++# 将.desktop文件写入构建目录 ++file(WRITE ${CMAKE_BINARY_DIR}/sprinter.desktop "${DESKTOP_FILE_CONTENT}") ++ ++install(PROGRAMS ${CMAKE_BINARY_DIR}/sprinter.desktop DESTINATION /opt/apps/io.github.sprinter/files/share/applications) ++ ++install(TARGETS sprinter DESTINATION /opt/apps/io.github.sprinter/files/bin) +