This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log: 完成app:timekeeper的编译
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
+ |