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

Commit

Permalink
build: add QtScrcpy
Browse files Browse the repository at this point in the history
Log: 完成QtScrcpy的编译
  • Loading branch information
atmrfeng authored and kamiyadm committed Dec 1, 2023
1 parent a144bf6 commit dce3239
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
22 changes: 22 additions & 0 deletions io.github.QtScrcpy/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package:
id: io.github.QtScrcpy
name: QtScrcpy
version: 1.0.3
kind: app
description: |
Android实时投屏控制软件
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/wyyrepo/QtScrcpy.git"
commit: a135c28b99000b15e9f2ac94c218fcd06b17dfef
patch:
- patches/add-desktop-file-patch.patch
- patches/install-desktop-file-patch.patch

build:
kind: qmake
11 changes: 11 additions & 0 deletions io.github.QtScrcpy/patches/add-desktop-file-patch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/output/linux/release/QtScrcpy.desktop b/output/linux/release/QtScrcpy.desktop
new file mode 100644
index 0000000..024695d
--- /dev/null
+++ b/output/linux/release/QtScrcpy.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Name=QtScrcpy
+Exec=QtScrcpy %f
+Icon=logo
19 changes: 19 additions & 0 deletions io.github.QtScrcpy/patches/install-desktop-file-patch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/QtScrcpy/QtScrcpy.pro b/QtScrcpy/QtScrcpy.pro
index 05ad9d7..f5be7f3 100644
--- a/QtScrcpy/QtScrcpy.pro
+++ b/QtScrcpy/QtScrcpy.pro
@@ -157,3 +157,14 @@ linux {
RESOURCES += \
res/res.qrc

+desktop.path = $$PREFIX/share/applications
+desktop.files += ../output/linux/release/QtScrcpy.desktop
+INSTALLS += desktop
+
+target.path = $$PREFIX/bin
+ INSTALLS += target
+
+icons.path = $${PREFIX}/share/icons
+icons.files = ../backup/logo.png
+INSTALLS += icons
+

0 comments on commit dce3239

Please sign in to comment.