From 1ecbc7230f80a3c89ca692d009cd6f22d132905c Mon Sep 17 00:00:00 2001 From: wjyrich <1071633242@qq.com> Date: Mon, 13 May 2024 10:59:16 +0800 Subject: [PATCH] build: add hexed Binary file hex editor Log: add software name--hexed --- io.github.hexed/linglong.yaml | 24 ++++++++++ io.github.hexed/patches/0001-install.patch | 51 ++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 io.github.hexed/linglong.yaml create mode 100644 io.github.hexed/patches/0001-install.patch diff --git a/io.github.hexed/linglong.yaml b/io.github.hexed/linglong.yaml new file mode 100644 index 000000000..55644be62 --- /dev/null +++ b/io.github.hexed/linglong.yaml @@ -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 diff --git a/io.github.hexed/patches/0001-install.patch b/io.github.hexed/patches/0001-install.patch new file mode 100644 index 000000000..2061bab2a --- /dev/null +++ b/io.github.hexed/patches/0001-install.patch @@ -0,0 +1,51 @@ +From 0ecceb2a8083f0ba2d79bdb89959800c92b2da00 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +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 +