2 Starting a Project
liquibyte edited this page 2026-11-19 17:54:48 -06:00

Starting a Project

How a project begins: the guided start, which asks what the program's folder can't say, one page at a time, and importing a project from a .deb or a debian/ folder that a program already has.

The guided start

After New Project has chosen the program's folder, a window asks a few questions, one page each. Next checks the page before it goes on, and the status bar says what is missing; Back goes back.

The second page of the guided start

The second page of the guided start: the package's name and maintainer.

  1. The program's folder: what Debwright found in it: its build system, its license file and the license it reads as, its menu entry and its icon.
  2. The package's name and maintainer: the name users install it by, checked as you type, and who answers for the package, as Name <email>.
  3. What the program is: the one-line summary, and a few sentences more (they can wait).
  4. Its license: the license, the copyright holder and the years. Scan the Source reads them from the files, as on the Legal page; files under another license go to its Other licenses list.
  5. How it is built: the build system, which fills in its build and install commands, and the commands themselves.

Finish opens the project in the window with the answers; everything else is on its pages, and the Problems list says what is still missing. Skip (or Escape, or closing the window) opens it as Debwright found the folder. The project is saved only when you save it. Preferences can turn the guided start off.

A program's folder can also be given on the command line, debwright ~/src/myprog: Debwright opens the folder's project, or starts New Project for it (with the guided start) when it has none. Unryu's Build > Package > Make a Package in Debwright starts Debwright this way, for the folder of the file you are editing.

Importing

A project can start from what a program already has:

  • File > Import from a .deb: choose the package, then your program's folder, where the project will be. The name, version, maintainer, section, priority, homepage, description and every relation come from the package.
  • File > Import from a debian/ Folder: choose your program's folder, the one that holds debian/. Its debian/control gives the fields (the first package, when it names several), debian/changelog every release, debian/copyright the license, holder and years, and its maintainer scripts become scripts written by hand (without debhelper's #DEBHELPER# line). debian/rules is not read: the build commands are found from the folder, as for a new project.

Libraries in Depends, such as libc6, are left out, because a build finds them itself with the versions the programs need; so are substitutions such as ${shlibs:Depends}. A Debian revision is left out of the version (2.1-3 becomes 2.1), and the epoch goes to the Epoch field. The status bar says what was left out. The imported project is not saved until you save it.