From 1b705eddc691158e3d6c4c62d9820aad7d02f9b9 Mon Sep 17 00:00:00 2001 From: Bryant Eadon Date: Sat, 23 May 2026 16:08:31 -0700 Subject: [PATCH 1/2] Add Debian packaging files Adds a debian/ directory to enable building a .deb package for Debian/Ubuntu systems using standard dpkg-buildpackage tooling. - debian/control: package metadata with runtime deps (util-linux, parted, dosfstools, ntfs-3g, grub-pc-bin, p7zip-full, wimtools, python3-wxgtk4.0, python3-termcolor) and build deps (debhelper 13, dh-python, pybuild) - debian/rules: dh + pybuild build; patches polkit policy path from /usr/local/bin to /usr/bin at configure time - debian/changelog, copyright, source/format: standard packaging metadata Build with: sudo apt-get install devscripts debhelper dh-python python3-all python3-setuptools dpkg-buildpackage -us -uc -b Co-Authored-By: Claude Sonnet 4.6 --- debian/changelog | 5 +++++ debian/control | 34 ++++++++++++++++++++++++++++++++++ debian/copyright | 22 ++++++++++++++++++++++ debian/rules | 12 ++++++++++++ debian/source/format | 1 + 5 files changed, 74 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3c7365c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +woeusb-ng (0.2.12-1) unstable; urgency=medium + + * Initial Debian packaging. + + -- Bryant Eadon Sat, 23 May 2026 00:00:00 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5c1c02f --- /dev/null +++ b/debian/control @@ -0,0 +1,34 @@ +Source: woeusb-ng +Section: utils +Priority: optional +Maintainer: Jakub Szymański +Build-Depends: debhelper-compat (= 13), + dh-python, + python3-all, + python3-setuptools +Standards-Version: 4.6.2 +Rules-Requires-Root: no +Homepage: https://github.com/WoeUSB/WoeUSB-ng + +Package: woeusb-ng +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3-wxgtk4.0, + python3-termcolor, + util-linux, + parted, + dosfstools, + ntfs-3g, + grub-pc-bin | grub-efi-amd64-bin, + p7zip-full, + wimtools +Description: Create bootable Windows USB drives from ISO images or DVD + WoeUSB-ng is a simple tool that enables you to create your own USB stick + Windows installer from an ISO image or a real DVD. + . + It supports creating bootable USB drives for Windows Vista through + Windows 11, using either FAT32 or NTFS filesystems, with both BIOS + and UEFI boot support. + . + This is a rewrite of the original WoeUSB project. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4d5fc76 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: woeusb-ng +Upstream-Contact: jakubmateusz@poczta.onet.pl +Source: https://github.com/WoeUSB/WoeUSB-ng + +Files: * +Copyright: 2021 Jakub Szymański +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + On Debian systems, the full text of the GNU General Public License + version 3 can be found in the file '/usr/share/common-licenses/GPL-3'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6d8930e --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME = woeusb-ng + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_configure: + # Polkit policy hardcodes /usr/local/bin; packages install to /usr/bin + sed -i 's|/usr/local/bin/woeusbgui|/usr/bin/woeusbgui|' \ + miscellaneous/com.github.woeusb.woeusb-ng.policy + dh_auto_configure diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) From 5a378d29aa7d437428844bb2a758756987b6121f Mon Sep 17 00:00:00 2001 From: Bryant Eadon Date: Sat, 23 May 2026 16:22:15 -0700 Subject: [PATCH 2/2] Add debian/README.Debian with build and install instructions Notes the correct apt install ./package.deb invocation and explains why dpkg -i alone leaves the package unconfigured without deps. Co-Authored-By: Claude Sonnet 4.6 --- debian/README.Debian | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/README.Debian diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..99d04bc --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,27 @@ +woeusb-ng for Debian/Ubuntu +--------------------------- + +Installation +~~~~~~~~~~~~ +Use apt to install the .deb so that dependencies are resolved automatically: + + sudo apt install ./woeusb-ng_*.deb + +Do not use `dpkg -i` directly — it will install the package files but skip +dependency resolution, leaving the package unconfigured if python3-termcolor +or wimtools are not already present. If you have already run `dpkg -i`, fix +the broken state with: + + sudo apt --fix-broken install + +Building from source +~~~~~~~~~~~~~~~~~~~~ +Install the build dependencies: + + sudo apt install devscripts debhelper dh-python python3-all python3-setuptools + +Then build from the root of the source tree: + + dpkg-buildpackage -us -uc -b + +The resulting .deb is written to the parent directory.