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.
Simple note taking program with multi-folder support and auto-save. log: add app
- Loading branch information
Showing
2 changed files
with
81 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,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 | ||
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,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 | ||
|