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

Commit

Permalink
build: add timekeeper
Browse files Browse the repository at this point in the history
Log: 完成app:timekeeper的编译
  • Loading branch information
LLLLSHANG authored and kamiyadm committed Dec 1, 2023
1 parent 4f82141 commit 2f94cef
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.timekeeper/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.timekeeper
name: timekeeper
version: 0.0.1
kind: app
description: |
A Qt Application for Time Tracking.Edit the list of tasks you might work on.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/gilmoskowitz/timekeeper.git"
commit: 98f7c268fc0b5f52274fb57aa7cf1821330c714a
patch:
- patches/install-desktop.patch

build:
kind: qmake
30 changes: 30 additions & 0 deletions io.github.timekeeper/patches/install-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/timekeeper.desktop b/timekeeper.desktop
new file mode 100644
index 0000000..8a57ffa
--- /dev/null
+++ b/timekeeper.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Name=timekeeper
+Exec=timekeeper %f
+Icon=icon128x32
diff --git a/timekeeper.pro b/timekeeper.pro
index 517defe..6554f58 100644
--- a/timekeeper.pro
+++ b/timekeeper.pro
@@ -37,3 +37,14 @@ isEqual(QT_MAJOR_VERSION, 5) {
}
RESOURCES += timekeeper.qrc

+desktop.path = $$PREFIX/share/applications
+desktop.files += timekeeper.desktop
+INSTALLS += desktop
+
+target.path = $$PREFIX/bin
+INSTALLS += target
+
+icons.path = $${PREFIX}/share/icons
+icons.files = images/icon128x32.png
+INSTALLS += icons
+

0 comments on commit 2f94cef

Please sign in to comment.