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

Commit

Permalink
build: add mkcron
Browse files Browse the repository at this point in the history
Simple cron schedule expression editor for Linux Desktop

Log: add software name--mkcron
  • Loading branch information
wjyrich committed May 28, 2024
1 parent e7f01b2 commit 94e58b4
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
43 changes: 43 additions & 0 deletions io.github.mkcron/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package:
id: io.github.mkcron
name: mkcron
version: 1.2.2
kind: app
description: |
Simple cron schedule expression editor for Linux Desktop
runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: qthttpserver
type: runtime
version: 1.0.0
source:
kind: git
url: https://github.com/qt-labs/qthttpserver.git
version: master
commit: 52bce52413763ead7759f8c2e374a40bb82f058f
build:
kind: qmake
- id: qtwebengine/5.15.7
type: runtime

source:
kind: git
url: https://github.com/keshavbhatt/mkcron.git
commit: 2896b5c12f0470da0227758226852f2789beb38c
patch: patches/0001-install.patch

build:
kind: qmake
manual:
configure: |
cp snap/gui/icon.png snap/gui/MkCron.png
cd src
qmake -makefile ${conf_args} ${extra_args}
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
49 changes: 49 additions & 0 deletions io.github.mkcron/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
From fb972af16d75fa1c888542b73404c4dab84224d1 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Thu, 18 Apr 2024 11:24:15 +0800
Subject: [PATCH] install

---
snap_launcher/mkcron.desktop | 2 +-
src/mkcron.pro | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/snap_launcher/mkcron.desktop b/snap_launcher/mkcron.desktop
index d108dbd..0e4a2ea 100644
--- a/snap_launcher/mkcron.desktop
+++ b/snap_launcher/mkcron.desktop
@@ -3,7 +3,7 @@ Version=1.0
GenericName=MkCron
Name=MkCron
Type=Application
-Icon=${SNAP}/meta/gui/icon.png
+Icon=MkCron
Keywords=cron;schedule
Exec=mkcron %F
Categories=Utility;Qt;
diff --git a/src/mkcron.pro b/src/mkcron.pro
index ba1cccb..92c2195 100644
--- a/src/mkcron.pro
+++ b/src/mkcron.pro
@@ -47,9 +47,16 @@ FORMS += \

# 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

RESOURCES += \
breeze.qrc \
resources.qrc
+
+target.path =$$PREFIX/bin
+desktop.files =../snap_launcher/mkcron.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons/hicolor/16X16/apps/
+icons.files = ../snap/gui/MkCron.png
+INSTALLS += target desktop icons
\ No newline at end of file
--
2.33.1

0 comments on commit 94e58b4

Please sign in to comment.