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.
Log: 完成app:showifcfg的编译
- Loading branch information
Showing
2 changed files
with
64 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.showifcfg | ||
name: showifcfg | ||
version: 0.0.1 | ||
kind: app | ||
description: | | ||
Silly QML utility to show ifconfig results,useful for cases where a shell is not convenient. | ||
runtime: | ||
id: org.deepin.Runtime | ||
version: 23.0.0 | ||
|
||
source: | ||
kind: git | ||
url: "https://github.com/berndhs/showifcfg.git" | ||
commit: 4e92dab92bf89cbb01c236f62e9e3ef128e53b2f | ||
patch: | ||
- patches/fix-desktop.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,43 @@ | ||
diff --git a/shownetif.desktop b/shownetif.desktop | ||
index 620f6c0..8b1e4e5 100644 | ||
--- a/shownetif.desktop | ||
+++ b/shownetif.desktop | ||
@@ -3,6 +3,6 @@ Type=Application | ||
Name=showifcfg | ||
GenericName=showifcfg | ||
Comment=Utility to display ip interface configurations | ||
-Exec=showifcfg | ||
-Icon=showifcfg | ||
+Exec=shownetif %f | ||
+Icon=showinetif | ||
Categories=Utility;Network; | ||
diff --git a/shownetif.pro b/shownetif.pro | ||
index f122fc6..30de0ea 100644 | ||
--- a/shownetif.pro | ||
+++ b/shownetif.pro | ||
@@ -51,21 +51,21 @@ OTHER_FILES += \ | ||
notes.txt | ||
|
||
unix:!symbian:!maemo5 { | ||
- target.path = /usr/bin/ | ||
+ target.path = $$PREFIX/bin | ||
INSTALLS += target | ||
} | ||
|
||
BLD_ADDONS = "" | ||
unix:!symbian:!maemo5 { | ||
desktopfile.files = $${TARGET}.desktop | ||
- desktopfile.path = /usr/share/applications | ||
+ desktopfile.path = $$PREFIX/share/applications | ||
INSTALLS += desktopfile | ||
BLD_ADDONS += "desktop" | ||
} | ||
|
||
unix:!symbian:!maemo5 { | ||
- icon.files = showifcfg.png | ||
- icon.path = /usr/share/icons/hicolor/64x64/apps | ||
+ icon.files = images/showinetif.png | ||
+ icon.path = $${PREFIX}/share/icons | ||
INSTALLS += icon | ||
BLD_ADDONS += "icon" | ||
} |