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

Commit

Permalink
build: add Sweetfish
Browse files Browse the repository at this point in the history
Log: 完成Sweetfish的编译
  • Loading branch information
atmrfeng authored and kamiyadm committed Jan 1, 2024
1 parent a9d7a24 commit 6f5e82b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.Sweetfish/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.Sweetfish
name: Sweetfish
version: 0.0.7
kind: app
description: |
The Mastodon client for Linux with Qt.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/PG-MANA/Sweetfish.git"
commit: 2460c1bc374e4b19e8113136eb115a860cd5ba5d
patch:
- patches/fix_install.patch

build:
kind: cmake
24 changes: 24 additions & 0 deletions io.github.Sweetfish/patches/fix_install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1806ac6..22992a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,3 +32,7 @@ add_dependencies(sweetfish translations)

install(TARGETS sweetfish DESTINATION bin)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/locales DESTINATION lib/sweetfish)
+
+install(TARGETS sweetfish DESTINATION bin/)
+install(FILES build_dir/sweetfish.desktop DESTINATION share/applications/)
+install(FILES snap/gui/sweetfish.png DESTINATION share/icons/)
\ No newline at end of file
diff --git a/build_dir/sweetfish.desktop b/build_dir/sweetfish.desktop
new file mode 100644
index 0000000..13b7bbb
--- /dev/null
+++ b/build_dir/sweetfish.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=sweetfish
+Exec=sweetfish %F
+Icon=sweetfish
+Type=Application

0 comments on commit 6f5e82b

Please sign in to comment.