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

build: add hexed #2169

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions io.github.hexed/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package:
id: io.github.hexed
name: hexed
version: 1.2.1
kind: app
description: |
Binary file hex editor

runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: qtscript/5.15.7
type: runtime

source:
kind: git
url: https://github.com/pgeorgiev98/hexed.git
commit: dfe9e3e69b7c0d642b3a9b4b1a51f764d8339199
patch: patches/0001-install.patch

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

---
app/app.pro | 10 +++++++++-
app/res/hexed.desktop | 9 +++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
create mode 100644 app/res/hexed.desktop

diff --git a/app/app.pro b/app/app.pro
index cbf0836..73fa1a9 100644
--- a/app/app.pro
+++ b/app/app.pro
@@ -51,7 +51,15 @@ RESOURCES += res/resources.qrc

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
-else: unix:!android: target.path = /opt/$${TARGET}/bin
+else: unix:!android: #target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32:RC_ICONS = res/icon.ico
+
+target.path =$$PREFIX/bin
+desktop.files =res/hexed.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons/hicolor/scalable/apps
+icons.files = res/dark/cross.svg
+
+INSTALLS += target desktop icons
diff --git a/app/res/hexed.desktop b/app/res/hexed.desktop
new file mode 100644
index 0000000..cb75bc4
--- /dev/null
+++ b/app/res/hexed.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=hexed
+Name=hexed
+Icon=cross
+StartupNotify=false
+Categories=Accessibility;Qt;Utility;
+Type=Application
+Comment=Binary file hex editor
+Version=1.2.1
\ No newline at end of file
--
2.33.1

Loading