From bf2bf7a505cd264a41d08a9de0776479361830b0 Mon Sep 17 00:00:00 2001 From: jegly Date: Fri, 27 Mar 2026 15:08:11 +1100 Subject: [PATCH] fix: deb package - icon registration and app launcher entry --- build/atk.desktop | 1 + nfpm.yaml | 21 +++++++++++++++------ scripts/postinstall.sh | 3 +++ scripts/preremove.sh | 2 ++ 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100755 scripts/postinstall.sh create mode 100755 scripts/preremove.sh diff --git a/build/atk.desktop b/build/atk.desktop index efd683d..0940d3a 100644 --- a/build/atk.desktop +++ b/build/atk.desktop @@ -9,3 +9,4 @@ Categories=Development;Utility; Terminal=false StartupWMClass=ATK Keywords=android;adb;fastboot;debloat;logcat;flash; +StartupNotify=true diff --git a/nfpm.yaml b/nfpm.yaml index 1637bd6..b8b0e9c 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -1,32 +1,41 @@ name: "atk" arch: "amd64" platform: "linux" -version: "1.0.0" +version: "1.0.6" section: "utils" priority: "optional" maintainer: "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" diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh new file mode 100755 index 0000000..202d74c --- /dev/null +++ b/scripts/postinstall.sh @@ -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 diff --git a/scripts/preremove.sh b/scripts/preremove.sh new file mode 100755 index 0000000..610d6a3 --- /dev/null +++ b/scripts/preremove.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xdg-icon-resource uninstall --size 256 atk 2>/dev/null || true