fix: deb package - icon registration and app launcher entry
This commit is contained in:
parent
a88515f979
commit
bf2bf7a505
4 changed files with 21 additions and 6 deletions
|
|
@ -9,3 +9,4 @@ Categories=Development;Utility;
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupWMClass=ATK
|
StartupWMClass=ATK
|
||||||
Keywords=android;adb;fastboot;debloat;logcat;flash;
|
Keywords=android;adb;fastboot;debloat;logcat;flash;
|
||||||
|
StartupNotify=true
|
||||||
|
|
|
||||||
21
nfpm.yaml
21
nfpm.yaml
|
|
@ -1,32 +1,41 @@
|
||||||
name: "atk"
|
name: "atk"
|
||||||
arch: "amd64"
|
arch: "amd64"
|
||||||
platform: "linux"
|
platform: "linux"
|
||||||
version: "1.0.0"
|
version: "1.0.6"
|
||||||
section: "utils"
|
section: "utils"
|
||||||
priority: "optional"
|
priority: "optional"
|
||||||
maintainer: "jegly <https://github.com/jegly>"
|
maintainer: "jegly <https://github.com/jegly>"
|
||||||
description: |
|
description: |
|
||||||
ATK (Android Toolkit) — an all-in-one ADB GUI for Android power users,
|
ATK (Android Toolkit) — an all-in-one ADB GUI for Android power users,
|
||||||
security researchers, and bug hunters. Includes a debloater (2157 packages),
|
security researchers, and bug hunters.
|
||||||
live logcat, app inspector, certificate manager, Pixel factory flasher,
|
|
||||||
prop editor, device backup, and 487 utility commands.
|
|
||||||
vendor: "jegly"
|
vendor: "jegly"
|
||||||
homepage: "https://github.com/jegly/ATK"
|
homepage: "https://github.com/jegly/ATK"
|
||||||
license: "GPL-3.0"
|
license: "GPL-3.0"
|
||||||
|
|
||||||
contents:
|
contents:
|
||||||
- src: "build/bin/ATK"
|
- src: "build/bin/ATK"
|
||||||
dst: "/opt/atk/ATK"
|
dst: "/opt/atk/ATK"
|
||||||
|
file_info:
|
||||||
|
mode: 0755
|
||||||
- src: "/opt/atk/ATK"
|
- src: "/opt/atk/ATK"
|
||||||
dst: "/usr/bin/atk"
|
dst: "/usr/bin/atk"
|
||||||
type: "symlink"
|
type: "symlink"
|
||||||
- src: "build/atk.desktop"
|
- src: "build/atk.desktop"
|
||||||
dst: "/usr/share/applications/atk.desktop"
|
dst: "/usr/share/applications/atk.desktop"
|
||||||
|
file_info:
|
||||||
|
mode: 0644
|
||||||
- src: "build/appicon.png"
|
- src: "build/appicon.png"
|
||||||
dst: "/usr/share/icons/hicolor/256x256/apps/atk.png"
|
dst: "/usr/share/icons/hicolor/256x256/apps/atk.png"
|
||||||
|
file_info:
|
||||||
|
mode: 0644
|
||||||
|
- src: "build/appicon.png"
|
||||||
|
dst: "/usr/share/pixmaps/atk.png"
|
||||||
|
file_info:
|
||||||
|
mode: 0644
|
||||||
depends:
|
depends:
|
||||||
- adb
|
- adb
|
||||||
- fastboot
|
- fastboot
|
||||||
- libgtk-3-0
|
- libgtk-3-0
|
||||||
- libwebkit2gtk-4.1-0
|
- libwebkit2gtk-4.1-0
|
||||||
|
scripts:
|
||||||
|
postinstall: "scripts/postinstall.sh"
|
||||||
|
preremove: "scripts/preremove.sh"
|
||||||
|
|
|
||||||
3
scripts/postinstall.sh
Executable file
3
scripts/postinstall.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null || true
|
||||||
|
update-desktop-database /usr/share/applications 2>/dev/null || true
|
||||||
2
scripts/preremove.sh
Executable file
2
scripts/preremove.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
xdg-icon-resource uninstall --size 256 atk 2>/dev/null || true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue