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.
build: add app CAN-Bus-GUI-Application
新增应用CAN-Bus-GUI-Application
Showing
2 changed files
with
42 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,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 | ||
|
||
|
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,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 |