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.
finish build StatisticAnalyzer-CPP-Qt for ll-build Log: 完成StatisticAnalyzer-CPP-Qt的编译
- Loading branch information
Showing
2 changed files
with
61 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,26 @@ | ||
package: | ||
id: io.github.StatisticAnalyzer-CPP-Qt | ||
name: StatisticAnalyzer-CPP-Qt | ||
version: 0.0.1 | ||
kind: app | ||
description: | | ||
An application for analyzing statistics, takes as input a file with a sample, analyzes it, and allows, by dividing the sample into intervals, to construct a graph. | ||
runtime: | ||
id: org.deepin.Runtime | ||
version: 23.0.0 | ||
|
||
source: | ||
kind: git | ||
url: "https://github.com/tonitaga/StatisticAnalyzer-CPP-Qt.git" | ||
commit: f9099e30d57534ab7ac7f3376baf60e4a2c4f0db | ||
patch: | ||
- patches/install-desktop.patch | ||
|
||
build: | ||
kind: qmake | ||
manual : | ||
configure: | | ||
cd src/View | ||
qmake -makefile ${conf_args} ${extra_args} | ||
35 changes: 35 additions & 0 deletions
35
io.github.StatisticAnalyzer-CPP-Qt/patches/install-desktop.patch
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,35 @@ | ||
diff --git a/src/View/QuiView.desktop b/src/View/QuiView.desktop | ||
new file mode 100644 | ||
index 0000000..07ab929 | ||
--- /dev/null | ||
+++ b/src/View/QuiView.desktop | ||
@@ -0,0 +1,5 @@ | ||
+[Desktop Entry] | ||
+Type=Application | ||
+Name=QuiView | ||
+Exec=QuiView %f | ||
+Icon=icon | ||
diff --git a/src/View/QuiView.pro b/src/View/QuiView.pro | ||
index e524d0c..9394c47 100644 | ||
--- a/src/View/QuiView.pro | ||
+++ b/src/View/QuiView.pro | ||
@@ -27,9 +27,17 @@ FORMS += \ | ||
win32:RC_FILE = icon.rc | ||
|
||
# Default rules for deployment. | ||
-qnx: target.path = /tmp/$${TARGET}/bin | ||
-else: unix:!android: target.path = /opt/$${TARGET}/bin | ||
+qnx: target.path = target.path = $$PREFIX/bin | ||
+else: unix:!android: target.path = $$PREFIX/bin | ||
!isEmpty(target.path): INSTALLS += target | ||
|
||
+desktop.path = $$PREFIX/share/applications | ||
+desktop.files += QuiView.desktop | ||
+INSTALLS += desktop | ||
+ | ||
+icons.path = $${PREFIX}/share/icons | ||
+icons.files = icon.png | ||
+INSTALLS += icons | ||
+ | ||
RESOURCES += \ | ||
icon.qrc |