Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
build: add QtPhilosophers
Browse files Browse the repository at this point in the history
finish build QtPhilosophers for ll-build

Log: 完成QtPhilosophers的编译
  • Loading branch information
Xxxgh28 authored and kamiyadm committed Dec 1, 2023
1 parent 8d447e5 commit d306834
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.QtPhilosophers/linglong.yaml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions io.github.QtPhilosophers/patches/add-desktop.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d306834

Please sign in to comment.