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

Commit

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

Log: 完成StatisticAnalyzer-CPP-Qt的编译
  • Loading branch information
Xxxgh28 authored and kamiyadm committed Dec 1, 2023
1 parent ff266cd commit 5e422c3
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
26 changes: 26 additions & 0 deletions io.github.StatisticAnalyzer-CPP-Qt/linglong.yaml
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 io.github.StatisticAnalyzer-CPP-Qt/patches/install-desktop.patch
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

0 comments on commit 5e422c3

Please sign in to comment.