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.
A cross-platform tool to edit and preview Qt style sheets. Log: add app qsseditor and update icon
- Loading branch information
1 parent
ceda2d7
commit 23b6a34
Showing
3 changed files
with
70 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,25 @@ | ||
package: | ||
id: io.github.qsseditor | ||
name: qsseditor | ||
version: 0.6.1.1 | ||
kind: app | ||
description: | | ||
A cross-platform tool to edit and preview Qt style sheets. | ||
runtime: | ||
id: org.deepin.Runtime | ||
version: 23.0.0 | ||
|
||
depends: | ||
- id: qscintilla | ||
version: 2.13.3.1 | ||
|
||
source: | ||
kind: git | ||
url: "https://github.com/HappySeaFox/qsseditor.git" | ||
commit: 582a8fa147185d26c2ede7cab1d9f12322a15e37 | ||
patch: | ||
- patches/fix-install.patch | ||
- patches/fix-icon.patch | ||
build: | ||
kind: qmake |
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,23 @@ | ||
diff --git a/qsseditor.desktop b/qsseditor.desktop | ||
index 9d9f0ac..dc49810 100644 | ||
--- a/qsseditor.desktop | ||
+++ b/qsseditor.desktop | ||
@@ -1,11 +1,10 @@ | ||
[Desktop Entry] | ||
-Encoding=UTF-8 | ||
-Type=Application | ||
Categories=Qt;Graphics;Viewer | ||
-Exec=qsseditor %f | ||
-Icon=qsseditor | ||
-Terminal=false | ||
-Name=QSS Editor | ||
-Name[ru]=Редактор QSS | ||
Comment=Tool to edit and preview Qt style sheets | ||
-Comment[ru]=Утилита для редактирования и предпросмотра таблиц стилей Qt | ||
+Encoding=UTF-8 | ||
+Exec=QssEditor %f | ||
+Icon=qsseditor-48 | ||
+Name=QSS Editor | ||
+Terminal=false | ||
+Type=Application | ||
+X-Deepin-Vendor=user-custom |
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,22 @@ | ||
diff --git a/QssEditor.pro b/QssEditor.pro | ||
index 6beb244..5af598f 100644 | ||
--- a/QssEditor.pro | ||
+++ b/QssEditor.pro | ||
@@ -189,3 +189,16 @@ OTHER_FILES += \ | ||
# distribution | ||
HTTPROOT="https://github.com/smoked-herring/qsseditor" | ||
DEFINES += HTTPROOT=$$sprintf("\"\\\"%1\\\"\"", $$HTTPROOT) | ||
+ | ||
+#install | ||
+DESKTOP_FILE = qsseditor.desktop | ||
+ | ||
+# 将 desktop 文件内容写入 | ||
+desktop.files += $$DESKTOP_FILE | ||
+desktop.path = $${PREFIX}/share/applications | ||
+ | ||
+icons.files += icons/qsseditor-48.png | ||
+icons.path = $${PREFIX}/share/icons/hicolor/48x48/apps # 图标文件的安装路径 | ||
+# 安装规则 | ||
+target.path = $$(PREFIX)/bin | ||
+INSTALLS += target desktop icons | ||
\ No newline at end of file |