fix: deb package - icon registration and app launcher entry

This commit is contained in:
jegly 2026-03-27 15:08:11 +11:00
commit bf2bf7a505
4 changed files with 21 additions and 6 deletions

View file

@ -9,3 +9,4 @@ Categories=Development;Utility;
Terminal=false
StartupWMClass=ATK
Keywords=android;adb;fastboot;debloat;logcat;flash;
StartupNotify=true

View file

@ -1,32 +1,41 @@
name: "atk"
arch: "amd64"
platform: "linux"
version: "1.0.0"
version: "1.0.6"
section: "utils"
priority: "optional"
maintainer: "jegly <https://github.com/jegly>"
description: |
ATK (Android Toolkit) — an all-in-one ADB GUI for Android power users,
security researchers, and bug hunters. Includes a debloater (2157 packages),
live logcat, app inspector, certificate manager, Pixel factory flasher,
prop editor, device backup, and 487 utility commands.
security researchers, and bug hunters.
vendor: "jegly"
homepage: "https://github.com/jegly/ATK"
license: "GPL-3.0"
contents:
- src: "build/bin/ATK"
dst: "/opt/atk/ATK"
file_info:
mode: 0755
- src: "/opt/atk/ATK"
dst: "/usr/bin/atk"
type: "symlink"
- src: "build/atk.desktop"
dst: "/usr/share/applications/atk.desktop"
file_info:
mode: 0644
- src: "build/appicon.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:
- adb
- fastboot
- libgtk-3-0
- libwebkit2gtk-4.1-0
scripts:
postinstall: "scripts/postinstall.sh"
preremove: "scripts/preremove.sh"

3
scripts/postinstall.sh Executable file
View 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
View file

@ -0,0 +1,2 @@
#!/bin/sh
xdg-icon-resource uninstall --size 256 atk 2>/dev/null || true