From d306834dde43d010668cd621d57dc5f87886a5c9 Mon Sep 17 00:00:00 2001 From: Xxxgh28 <826409886@qq.com> Date: Thu, 30 Nov 2023 19:39:04 +0800 Subject: [PATCH] build: add QtPhilosophers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit finish build QtPhilosophers for ll-build Log: 完成QtPhilosophers的编译 --- io.github.QtPhilosophers/linglong.yaml | 21 ++++++++++++++++ .../patches/add-desktop.patch | 25 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 io.github.QtPhilosophers/linglong.yaml create mode 100755 io.github.QtPhilosophers/patches/add-desktop.patch diff --git a/io.github.QtPhilosophers/linglong.yaml b/io.github.QtPhilosophers/linglong.yaml new file mode 100755 index 000000000..646b789c4 --- /dev/null +++ b/io.github.QtPhilosophers/linglong.yaml @@ -0,0 +1,21 @@ +package: + id: io.github.QtPhilosophers + name: QtPhilosophers + version: 0.0.1 + kind: app + description: | + Dining philosophers problem solved via Banker's algorithm. + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: "https://github.com/afendin/QtPhilosophers.git" + commit: ee0d5b27349e98e368ba8f7f2c67efd2a5d1462e + patch: + - patches/add-desktop.patch + +build: + kind: qmake diff --git a/io.github.QtPhilosophers/patches/add-desktop.patch b/io.github.QtPhilosophers/patches/add-desktop.patch new file mode 100755 index 000000000..aa8ba428a --- /dev/null +++ b/io.github.QtPhilosophers/patches/add-desktop.patch @@ -0,0 +1,25 @@ +diff --git a/QtPhilosophers.desktop b/QtPhilosophers.desktop +new file mode 100644 +index 0000000..dbbfe40 +--- /dev/null ++++ b/QtPhilosophers.desktop +@@ -0,0 +1,4 @@ ++[Desktop Entry] ++Type=Application ++Name=QtPhilosophers ++Exec=QtPhilosophers %f +diff --git a/QtPhilosophers.pro b/QtPhilosophers.pro +index 7848934..11c532b 100644 +--- a/QtPhilosophers.pro ++++ b/QtPhilosophers.pro +@@ -44,3 +44,10 @@ HEADERS += \ + qttricks/qqmlvariantlistmodel.h \ + qttricks/qqmlvariantlistmodel_p.h \ + $$PWD/src/resourcemanager.h ++ ++desktop.path = $$PREFIX/share/applications ++desktop.files += QtPhilosophers.desktop ++INSTALLS += desktop ++ ++target.path = $$PREFIX/bin ++INSTALLS += target