- C 99.8%
- Makefile 0.1%
- xtk_entry.c from xtk: the right-click menu of a text field closed as soon as it opened. The menu's own keyboard grab sends the field a FocusOut, and the field hid its menu on it. - xtk_version.h from xtk: 1.13. - The version is 1.1: src/debwright.h, debwright.debwright (with its 1.1 release in the changelog), README.md and debs/versions. |
||
|---|---|---|
| artwork | ||
| doc | ||
| hosho | ||
| screenshots | ||
| src | ||
| xtk | ||
| debwright.desktop | ||
| LICENSE | ||
| logo.png | ||
| Makefile | ||
| README.md | ||
Debwright
Makes a Debian package (.deb) of your program, checks it, builds it and tests it, in a window. You fill in what the package needs on a few pages; Debwright checks every field as you type, runs your build, finds the libraries your program needs, and writes the files Debian asks for: the control file, the changelog, the machine-readable copyright file, the maintainer scripts, the menu entry, the icons in every size, the software center entry and the checksums.
Debwright is built on Xtk and
Hosho, with no GTK or Qt. The manual is
in doc/ and in the project's wiki, and man debwright gives the options.
This is version 1.1.
What it does
- One project per program:
<name>.debwright, a plain text file in your program's folder, so it can be kept in version control with the code - A guided start asks what the folder can't say, one question at a time: the name and maintainer, what the program is, its license (with a scan of the source) and how it is built
- New Project looks at the folder: its name becomes the package name, its
build system (Make, CMake, Meson or a configure script) gives the build
and install commands, its LICENSE file gives the license, and a
<name>.desktopfile and an icon (such asartwork/<name>-icon.svg) are found - Import a project from an existing .deb, or from a program's
debian/folder: the fields, the changelog, the copyright and the maintainer scripts - Pages at the left: Package, Description, Build, Files, Desktop, Dependencies, Scripts, Legal and Changelog. Each page's icon is green when the page is complete, amber with a warning and red with an error. A page taller than the window scrolls
- Checked as you type: the name and version by Debian's rules, the maintainer's address, the summary's length, the dependency lists, the menu categories, the software center ID, what a purge may remove, the license; a version that is not newer than the last release is an error, because apt would not upgrade to it
- Problems at the bottom lists every problem; a click on one shows its page. An error stops a build, a warning does not
- Description shows how
apt showwill show your text - Desktop: the menu entry (made from fields, or your own file), the icon in every size from one SVG or PNG, shown at five sizes on a light and a dark color, and an AppStream entry for software centers
- Scripts: a system user, a systemd service, commands after install and before removal, what a purge removes; or scripts written by hand. The page shows the script dpkg will run
- Build runs in the background, each step's output in a terminal at the
bottom: a clean copy of your folder, your build and install commands, the
menu entry and icons, stripping, the libraries the programs need
(
dpkg-shlibdeps), the control file, configuration files, scripts, checksums, the .deb itself (dpkg-deb, files owned by root without fakeroot), and lintian's report when lintian is installed - Other releases: tick the releases to build for on the Package page,
from any distribution in
/usr/share/distro-info(Debian, Devuan, Ubuntu...). Each gets a package of its own (1.4+devuan5,1.4+deb12), built against that release's C library and development files in a sysroot that Debwright downloads once and keeps, with Depends worked out from the release's own files. A program that needs a newer C library than the release has stops the build, naming the function - C++ programs are built for another release in a build environment: the release's own system and compiler, made once by mmdebstrap and kept
- Build dependencies are found by a build: the headers the compiler
opened and the modules asked of
pkg-config - Test Install puts each package in a throwaway system of its release, made by mmdebstrap (no root needed), with its dependencies, runs a command of yours, removes and purges it, and names anything left behind
- License scanning: Scan the Source reads every file's SPDX and copyright lines (and asks licensecheck about the rest), and lists the files under another license, such as a copied-in library, as sections of the copyright file for you to correct
- Other packages from one build, such as a
-devpackage, and debug symbol packages (name-dbgsym), as Debian's own tools make them - lintian explained: each tag with its meaning and the page that fixes it; a double click accepts it as an override
- Build Several builds many projects in the order they need each other
- Publish sends the packages to folders, signed apt repositories with a section for each release (Debwright writes the index files; gpg signs them), and Forgejo or Gitea package registries, then uploads by rsync or scp. It shows the lines your users add to apt, and the release notes
- Next Version raises the version (1.9 to 1.10) and starts its changelog entry
- Themes: every xtk theme, shown at once when chosen in Preferences, and the icon theme of your choice or your desktop's
- The same project always makes the same package: file times come from the newest release's date
Screenshots
Building
It needs a C compiler, make, pkg-config and the X11 development files:
sudo apt install build-essential pkg-config libx11-dev libxft-dev \
libxrender-dev libxext-dev libxpm-dev libxcursor-dev \
libfontconfig-dev libfreetype-dev
Then:
make
./debwright
sudo make install # to /usr/bin, with its manual page (man debwright),
# or: make install PREFIX=~/.local
To make packages it uses dpkg-deb, dpkg-shlibdeps (package dpkg-dev),
strip (binutils) and gzip. With lintian installed, each build is
checked too. Test Install needs mmdebstrap, and your account needs
subordinate IDs in /etc/subuid and /etc/subgid (Debwright gives the
command when it has none). Building for other releases uses apt and
distro-info-data, and each distribution's keyring package.
Running
debwright # then File > New Project, Open or Import
debwright myprog.debwright # open a project
debwright --build myprog.debwright [--release devuan:daedalus]
# build without the window
debwright --publish myprog.debwright # publish the last build
Control+N makes a new project, Control+O opens one, Control+S saves it, Control+B builds the package, Control+T tests it, and Control+Q quits.
License
Debwright is under the MIT License; see LICENSE. The folders xtk/ and
hosho/ are copies of the Xtk and Hosho projects and keep their own
license, the Artistic License 2.0 (xtk/LICENSE, hosho/LICENSE).










