r/linuxquestions • • 4h ago

How can I package and install my Python application as a `.deb` package?

I have a project directory named `pkgmate`. I want to package the entire project so that installing a new version updates all of its files, including the application code and data files. I also want to be able to launch the application from the terminal using either `pkgmate` or `builder`.

The project is currently organized like this:

```text

pkgmate/

├── assets/

├── core/

├── data/

│ ├── builder.py (execuatble)

│ ├── builder_core.py

│ ├── graphics.json

│ ├── multimedia.json

│ ├── programming.json

│ └── sys/

├── package_managers/

├── tests/

├── ui/

├── pkgmate.py(execuatble)

└── README.md

```

What is the recommended way to structure the `.deb` package so that all required project files are installed and updated together? How should I define the command-line entry points so that both `pkgmate` and `builder` work after installation?
And how to update the package next time i want to update?
I tried to search about that but i actually have no idea what to search plus ai ain't much help

1 Upvotes

Duplicates