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

Commit

Permalink
build: add kakuro
Browse files Browse the repository at this point in the history
Log: 完成app:kakuro的编译
  • Loading branch information
LLLLSHANG authored and kamiyadm committed Dec 1, 2023
1 parent 2f94cef commit 9033853
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.kakuro/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.kakuro
name: kakuro
version: 0.0.1
kind: app
description: |
Kakuro application with a Qt GUI to play, solve, and generate Kakuro puzzles.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/ChrisMoutsos/kakuro.git"
commit: 214ff54ecd9c77d1328dd6e51602021eb28291e4
patch:
- patches/install-desktop.patch

build:
kind: qmake
25 changes: 25 additions & 0 deletions io.github.kakuro/patches/install-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/kakuro.desktop b/kakuro.desktop
new file mode 100644
index 0000000..aef4d9b
--- /dev/null
+++ b/kakuro.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=Application
+Name=kakuro
+Exec=kakuro %f
diff --git a/kakuro.pro b/kakuro.pro
index 4656b00..5b2e373 100644
--- a/kakuro.pro
+++ b/kakuro.pro
@@ -23,3 +23,10 @@ RESOURCES += \
resources.qrc

CONFIG += c++11
+
+desktop.path = $$PREFIX/share/applications
+desktop.files += kakuro.desktop
+INSTALLS += desktop
+
+target.path = $$PREFIX/bin
+INSTALLS += target

0 comments on commit 9033853

Please sign in to comment.