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

Commit

Permalink
build: add app Qtext
Browse files Browse the repository at this point in the history
Simple note taking program with multi-folder support and auto-save.

log: add app
  • Loading branch information
Van020530 authored and kamiyadm committed May 29, 2024
1 parent ea82064 commit 6c98382
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
29 changes: 29 additions & 0 deletions io.github.QText/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package:
id: io.github.QText
name: QText
version: 4.99.28.2
kind: app
description: |
Simple note taking program with multi-folder support and auto-save.
runtime:
id: org.deepin.Runtime
version: 23.0.0


source:
kind: git
url: https://github.com/medo64/QText.git
commit: ca67ad2114b6feafc558045d9294b58d68cc7769
patch: patches/0001-fix-desktop.patch
build:
kind: qmake
manual :
configure: |
cd src
cp icons/256x256/app.png icons/256x256/QTextIcon.png
qmake -makefile ${conf_args} ${extra_args}
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
52 changes: 52 additions & 0 deletions io.github.QText/patches/0001-fix-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
From e88fcc656998236164b25192a99493fd0b9b41f9 Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Thu, 9 May 2024 00:23:43 +0800
Subject: [PATCH] fix-desktop

---
src/QText.pro | 12 +++++++++---
src/Qtext.desktop | 9 +++++++++
2 files changed, 18 insertions(+), 3 deletions(-)
create mode 100644 src/Qtext.desktop

diff --git a/src/QText.pro b/src/QText.pro
index 681a01e..b151ec6 100644
--- a/src/QText.pro
+++ b/src/QText.pro
@@ -161,9 +161,15 @@ FORMS += \
ui/mainwindow.ui

# Default rules for deployment.
-qnx: target.path = /tmp/$${TARGET}/bin
-else: unix:!android: target.path = /opt/$${TARGET}/bin
-!isEmpty(target.path): INSTALLS += target
+
+BINDIR = $$PREFIX/bin
+DATADIR = $$PREFIX/share
+target.path = $$BINDIR
+desktop.files = Qtext.desktop
+desktop.path = $$DATADIR/applications/
+icon.files = icons/256x256/QTextIcon.png
+icon.path= $$DATADIR/icons/hicolor/256x256/apps/
+INSTALLS += target desktop icon

RESOURCES += \
qtext.qrc
diff --git a/src/Qtext.desktop b/src/Qtext.desktop
new file mode 100644
index 0000000..c1ed3ba
--- /dev/null
+++ b/src/Qtext.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Categories=Tool;Qt;
+Exec=qtext
+Name=qtext
+Icon=QTextIcon
+StartupNotify=false
+Terminal=false
+Type=Application
+X-Deepin-Vendor=user-custom
--
2.33.1

0 comments on commit 6c98382

Please sign in to comment.