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

Commit

Permalink
build: add app CAN-Bus-GUI-Application
Browse files Browse the repository at this point in the history
新增应用CAN-Bus-GUI-Application
Clown405 authored and kamiyadm committed Nov 29, 2023
1 parent 4393dc3 commit a608cc7
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.CAN-Bus-GUI-Application/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.CAN-Bus-GUI-Application
name: CAN-Bus-GUI-Application
version: 0.0.1
kind: app
description: |
Virtual CAN Bus C++ Qt Application
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/NadaElokaily/CAN-Bus-GUI-Application.git
commit: 4783d4b1156ed0d1c4219af43f29ee5281b35d5f
patch: patches/fix_cb.patch
build:
kind: qmake


21 changes: 21 additions & 0 deletions io.github.CAN-Bus-GUI-Application/patches/fix_cb.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- ../CAN_BUS.pro 2023-11-11 14:46:48.801724000 +0800
+++ ../CAN_BUS.pro 2023-11-11 14:44:57.017363000 +0800
@@ -33,3 +33,18 @@
RemoveEcuIcon.qrc \
saveIcon.qrc \
loadIcon.qrc
+target.path = $$PREFIX/bin # /opt/$${TARGET}/bin
+INSTALLS += target
+
+DESKTOP_FILE = ./CAN_BUS.desktop
+system("echo '[Desktop Entry]' > $$DESKTOP_FILE")
+system("echo 'Type=Application' >> $$DESKTOP_FILE")
+system("echo 'Name=CAN_BUS' >> $$DESKTOP_FILE")
+system("echo 'Comment=CAN_BUS.' >> $$DESKTOP_FILE")
+system("echo 'Exec=CAN_BUS' >> $$DESKTOP_FILE")
+system("echo 'Terminal=false' >> $$DESKTOP_FILE")
+system("echo 'Categories=Utility;' >> $$DESKTOP_FILE")
+
+desktop.files += $$DESKTOP_FILE
+desktop.path = $$PREFIX/share/applications
+INSTALLS += desktop

0 comments on commit a608cc7

Please sign in to comment.