feat: add packaging module

Introduced a packaging module to manage the packaging process.

  • made package_path here !9 (merged) more dynamic as planned.
  • implemented functionality to cover each stage of packaging tweaks

Testing: Tested behavior and package got generated, build, installed, and cleaned leftovers afterwards. See results below:

Click here to see testing results

mrdigo@mobianDevel:~/mobian/tweakster$ sudo ./target/release/tweakster -d general dpkg: command status: exit status: 0 amd64 dpkg-parsechangelog: command status: exit status: 0 0.0.3 dh_make: command status: exit status: 0 Maintainer Name : The Mobian Team Email-Address : nonexist@mobian.org Date : Thu, 16 Apr 2026 07:15:17 +0000 Package Name : mobile-tweaks Version : 0.0.3 License : gpl3 Package Type : single Currently there is not top level Makefile. This may require additional tuning Done. Please edit the files in the debian/ subdirectory now.

WARNING: Found duplicate in common include config, dest etc/profile.d has been seen before. dpkg-buildpackage: command status: exit status: 0 dpkg-buildpackage: info: source package mobile-tweaks dpkg-buildpackage: info: source version 0.0.3 dpkg-buildpackage: info: source distribution UNRELEASED dpkg-buildpackage: info: source changed by The Mobian Team nonexist@mobian.org dpkg-buildpackage: info: host architecture amd64 dh clean dh_clean dpkg-source: info: using source format '3.0 (native)' dpkg-source: info: building mobile-tweaks in mobile-tweaks_0.0.3.tar.xz dpkg-source: info: building mobile-tweaks in mobile-tweaks_0.0.3.dsc dh binary dh_update_autotools_config dh_autoreconf create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install --destdir=debian/mobile-tweaks/ dh_install dh_installdocs dh_installchangelogs dh_installsystemd dh_installgsettings dh_perl dh_link dh_strip_nondeterminism dh_compress dh_fixperms dh_missing dh_dwz -a dh_strip -a dh_makeshlibs -a dh_shlibdeps -a dh_installdeb dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'mobile-tweaks' in '../mobile-tweaks_0.0.3_amd64.deb'. dpkg-genchanges: info: including full source code in upload dpkg-buildpackage: info: full upload; Debian-native package (full source is included) dpkg-source --before-build . debian/rules clean dpkg-source -b . debian/rules binary dpkg-gencontrol: warning: Depends field of package mobile-tweaks: substitution variable ${shlibs:Depends} used, but is not defined dpkg-genbuildinfo -O../mobile-tweaks_0.0.3_amd64.buildinfo dpkg-genchanges -O../mobile-tweaks_0.0.3_amd64.changes dpkg-source --after-build . dpkg: command status: exit status: 1 Selecting previously unselected package mobile-tweaks. (Reading database ... 65492 files and directories currently installed.) Preparing to unpack mobile-tweaks_0.0.3_amd64.deb ... Unpacking mobile-tweaks (0.0.3) ... Processing triggers for libglib2.0-0t64:amd64 (2.84.4-3~deb13u2) ... No schema files found: doing nothing. dpkg: dependency problems prevent configuration of mobile-tweaks: mobile-tweaks depends on dconf-gsettings-backend | gsettings-backend; however: Package dconf-gsettings-backend is not installed. Package gsettings-backend is not installed.

dpkg: error processing package mobile-tweaks (--install): dependency problems - leaving unconfigured Errors were encountered while processing: mobile-tweaks Package leftovers cleaned up sucessfully

mrdigo@mobianDevel:~/mobian/tweakster$ dpkg -L mobile-tweaks /. /etc /etc/profile.d /etc/profile.d/profile.d /etc/profile.d/profile.d/mobile-tweaks-mali.sh /usr /usr/lib /usr/lib/systemd /usr/lib/systemd/journald.conf.d /usr/lib/systemd/journald.conf.d/journald.conf.d /usr/lib/systemd/journald.conf.d/journald.conf.d/journal-max-retention.conf /usr/lib/systemd/logind.conf.d /usr/lib/systemd/logind.conf.d/logind.conf.d /usr/lib/systemd/logind.conf.d/logind.conf.d/mobile-tweaks.conf /usr/lib/systemd/system /usr/lib/systemd/system/ModemManager.service.d /usr/lib/systemd/system/ModemManager.service.d/ModemManager.service.d /usr/lib/systemd/system/ModemManager.service.d/ModemManager.service.d/mobile-tweaks.conf /usr/lib/udev /usr/lib/udev/rules.d /usr/lib/udev/rules.d/rules.d /usr/lib/udev/rules.d/rules.d/90-nm-gadget-managed.rules /usr/share /usr/share/backgrounds /usr/share/backgrounds/gnome /usr/share/backgrounds/gnome/gnome /usr/share/backgrounds/gnome/gnome/adwaita-phone.jpg /usr/share/doc /usr/share/doc/mobile-tweaks /usr/share/doc/mobile-tweaks/changelog.gz /usr/share/doc/mobile-tweaks/copyright /usr/share/doc-base /usr/share/doc-base/mobile-tweaks.mobile-tweaks /usr/share/glib-2.0 /usr/share/glib-2.0/schemas /usr/share/glib-2.0/schemas/schemas /usr/share/glib-2.0/schemas/schemas/11_mobile.gschema.override /usr/share/pam-configs /usr/share/pam-configs/pam-configs /usr/share/pam-configs/pam-configs/pam-mobian /usr/share/u-boot-menu /usr/share/u-boot-menu/conf.d /usr/share/u-boot-menu/conf.d/conf.d /usr/share/u-boot-menu/conf.d/conf.d/mobian.conf

Edited by Mohammed ElDegwi

Merge request reports

Loading
Loading