From 1c4801d99278a73a4008e82a0d3f1b838e41e54e Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Fri, 24 May 2024 23:40:09 +0800 Subject: [PATCH] build: add app AwesomeBump AwesomeBump is a free program written using Qt library designed to generate normal log: add app --- io.github.AwesomeBump/linglong.yaml | 29 ++++++++ io.github.AwesomeBump/patches/0001-fix.patch | 70 ++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 io.github.AwesomeBump/linglong.yaml create mode 100644 io.github.AwesomeBump/patches/0001-fix.patch diff --git a/io.github.AwesomeBump/linglong.yaml b/io.github.AwesomeBump/linglong.yaml new file mode 100644 index 000000000..ba957a040 --- /dev/null +++ b/io.github.AwesomeBump/linglong.yaml @@ -0,0 +1,29 @@ +package: + id: io.github.AwesomeBump + name: AwesomeBump + version: 3.1.1.1 + kind: app + description: | + AwesomeBump is a free program written using Qt library designed to generate normal + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/kmkolasinski/AwesomeBump.git + commit: f9fad16e066e366636dad05cb4c53c9e0aa2d729 + patch: patches/0001-fix.patch + +depends: + - id: qtscript/5.15.7 + type: runtime + +build: + kind: qmake + maunal: + configure: | + cd Sources + cp resources/icons/icon.png resources/icons/AwesomeBump.png + qmake -makefile ${conf_args} ${extra_args} diff --git a/io.github.AwesomeBump/patches/0001-fix.patch b/io.github.AwesomeBump/patches/0001-fix.patch new file mode 100644 index 000000000..50dfab7f1 --- /dev/null +++ b/io.github.AwesomeBump/patches/0001-fix.patch @@ -0,0 +1,70 @@ +From 0f626110765c9a4d0c76c9a2d23c240bc26397d8 Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Fri, 24 May 2024 23:32:37 +0800 +Subject: [PATCH] fix + +--- + AwesomeBump.desktop | 8 ++++++++ + Sources/Sources.pro | 19 +++++++++++++++---- + 2 files changed, 23 insertions(+), 4 deletions(-) + create mode 100644 AwesomeBump.desktop + +diff --git a/AwesomeBump.desktop b/AwesomeBump.desktop +new file mode 100644 +index 0000000..102dcfe +--- /dev/null ++++ b/AwesomeBump.desktop +@@ -0,0 +1,8 @@ ++[Desktop Entry] ++Exec=AwesomeBump ++Name=AwesomeBump ++Icon=AwesomeBump ++StartupNotify=false ++Terminal=false ++Type=Application ++X-Deepin-Vendor=user-custom +diff --git a/Sources/Sources.pro b/Sources/Sources.pro +index dbdcace..2fa90be 100644 +--- a/Sources/Sources.pro ++++ b/Sources/Sources.pro +@@ -52,7 +52,7 @@ write_file("$$TOP_DIR/workdir/current", SPEC) + # continues to look for these resource files in its current + # directory's subfolders (Config/* and Core/*) when using + # qmake to compile +-DEFINES += RESOURCE_BASE=\\\"./\\\" ++ + + VPATH += ../shared + INCLUDEPATH += ../shared include utils utils/QtnProperty utils/contextinfo +@@ -165,9 +165,7 @@ DISTFILES += \ + + # install additional files into target destination + # (require "make install") +-config.path = $$DESTDIR +-config.files += $$TOP_DIR/Bin/Configs $$TOP_DIR/Bin/Core +-INSTALLS += config ++ + + exists("utils/qtcopydialog/qtcopydialog.pri") { + message("*** Adding 'copydialog' module.") +@@ -196,3 +194,16 @@ exists("utils/fervor/Fervor.pri") { + FV_APP_VERSION = $$VERSION_FULL + include("utils/fervor/Fervor.pri") + } ++ ++BINDIR = $$PREFIX/bin ++DATADIR = $$PREFIX/share ++DEFINES += RESOURCE_BASE=\\\"$$BINDIR/\\\" ++ ++target.path = $$BINDIR ++desktop.files = ../AwesomeBump.desktop ++desktop.path = $$DATADIR/applications/ ++icon.files = resources/icons/AwesomeBump.png ++icon.path= $$DATADIR/icons/hicolor/256x256/apps/ ++config.path = $$BINDIR ++config.files += $$TOP_DIR/Bin/Configs $$TOP_DIR/Bin/Core ++INSTALLS += target desktop icon config +\ No newline at end of file +-- +2.33.1 +