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.
CAJ 转 PDF 转换器(GUI 版本) log: add a software
- Loading branch information
Showing
2 changed files
with
55 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,19 @@ | ||
package: | ||
id: io.github.caj2pdf-qt | ||
name: caj2pdf-qt | ||
version: 0.1.5.1 | ||
kind: app | ||
description: | | ||
CAJ 转 PDF 转换器(GUI 版本) | ||
runtime: | ||
id: org.deepin.Runtime | ||
version: 23.0.0 | ||
|
||
source: | ||
kind: git | ||
url: https://github.com/sainnhe/caj2pdf-qt.git | ||
commit: 5ea291c0f27c28dc533398c4e827215c18e1cceb | ||
patch: patches/0001-fix-desktop.patch | ||
|
||
build: | ||
kind: cmake |
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,36 @@ | ||
From 7363c6fda560e39d54ec6a09b1d090d2bebe5792 Mon Sep 17 00:00:00 2001 | ||
From: van <751890223@qq.com> | ||
Date: Sat, 13 Apr 2024 14:41:26 +0800 | ||
Subject: [PATCH] fix-desktop | ||
|
||
--- | ||
CMakeLists.txt | 15 +++++++++++++++ | ||
1 file changed, 15 insertions(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1312dd8..f6198f8 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -48,3 +48,18 @@ set_target_properties( | ||
MACOSX_BUNDLE_SHORT_VERSION_STRING | ||
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} | ||
MACOSX_BUNDLE_ICON_FILE convert) | ||
+ | ||
+set(DESKTOP_FILE_CONTENT " | ||
+[Desktop Entry] | ||
+Type=Application | ||
+Name=caj2pdf | ||
+Exec=caj2pdf | ||
+Icon=convert | ||
+Categories=Utility; | ||
+") | ||
+ | ||
+file(WRITE ${CMAKE_BINARY_DIR}/caj2pdf.desktop "${DESKTOP_FILE_CONTENT}") | ||
+ | ||
+install(PROGRAMS ${CMAKE_BINARY_DIR}/caj2pdf.desktop DESTINATION share/applications) | ||
+install(PROGRAMS ${PROJECT_SOURCE_DIR}/icons/convert.png DESTINATION share/icons) | ||
+install(TARGETS caj2pdf DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) | ||
\ No newline at end of file | ||
-- | ||
2.33.1 | ||
|