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

Commit

Permalink
build: add poolviewer
Browse files Browse the repository at this point in the history
Poolviewer - Opensource Swimovate Poolmate application

Log: add software name--poolviewer
  • Loading branch information
wjyrich authored and kamiyadm committed May 29, 2024
1 parent 697d6fa commit 7e404c6
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
26 changes: 26 additions & 0 deletions io.github.poolviewer/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package:
id: io.github.poolviewer
name: poolviewer
version: 0.6.2
kind: app
description: |
Poolviewer - Opensource Swimovate Poolmate application
runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: qtwebengine/5.15.7
type: runtime
- id: qtserialport/5.15.7
type: runtime

source:
kind: git
url: https://github.com/ihewitt/poolviewer.git
commit: b83ac69cd436325157e02aa914830e1e34888610
patch: patches/0001-install.patch

build:
kind: qmake
51 changes: 51 additions & 0 deletions io.github.poolviewer/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
From c787a7615824be1ca42a2c1b592deafe6b9d7693 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Wed, 22 May 2024 12:42:59 +0800
Subject: [PATCH] install

---
images/poolviewer.desktop | 11 +++++++++++
poolview.pro | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 images/poolviewer.desktop

diff --git a/images/poolviewer.desktop b/images/poolviewer.desktop
new file mode 100644
index 0000000..c42395f
--- /dev/null
+++ b/images/poolviewer.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Categories=Utility;
+Comment=Opensource Swimovate Poolmate application
+Exec=poolview
+GenericName=poolview
+Icon=pod
+Name=poolview
+StartupNotify=false
+Type=Application
+Version=0.6.1
+X-Deepin-Vendor=user-custom
diff --git a/poolview.pro b/poolview.pro
index 35a324c..1c41d77 100644
--- a/poolview.pro
+++ b/poolview.pro
@@ -35,9 +35,14 @@ CONFIG(debug, debug|release) {
win32: TARGET = $$join(TARGET,,d)
}

-target.path = $$PREFIX/usr/bin
+target.path = $$PREFIX/bin
INSTALLS += target
+desktop.files = images/poolviewer.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons/hicolor/32X32/apps/
+icons.files = images/pod.png

+INSTALLS += desktop icons
FORMS = ui/summary.ui \
ui/sync.ui \
ui/config.ui \
--
2.33.1

0 comments on commit 7e404c6

Please sign in to comment.