Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to package close source application (proprietary). I know how to package open-source apps using dh_make and pbuilder but using this method others can see my source code. Is there any way for doing this without posiblitiy of exposing source code. I can't just send archive to Ubuntu Software Center because they don't know where to put each file.

So can you help me with this.

share|improve this question
1  
Which pgming language is used for your program? –  Tachyons Sep 19 '12 at 12:00
    
I'm using Qt C++ –  Alen Sep 19 '12 at 14:49
add comment

1 Answer

up vote 2 down vote accepted

Building a binary package results in a .deb file. This usually does not contain source code, as build artefacts are binary.

Exceptions to this is software written in Python, PHP, and other interpreted languages. Because it's interpreted, you can't build without restricting the end users to change the environment (e.g. Python version). And yes, there are workarounds for this, but this is not recommended. The Debian policy for Python for example is to compile it at installation time (Debian wiki: Python/Policy).

Feel free to inspect the contents of your package after building. Also see examples of open source software binary packages.

Edit - Using PPAs:

When uploading a package to your PPA, it will be a source package and built by Launchpad cloud servers to a binary package. Both will be published. There's no way build your packages locally and publish your binary-only packages to a PPA. You'll have to set up a repository yourself.

share|improve this answer
    
I wasn't aware of this because I'm still begginer at packaging and I was only using PPA so I thought that source code goes in DEB package as well. Thank you. –  Alen Sep 19 '12 at 14:53
    
A PPA is a kinda different story though. Any package in a PPA is built in Launchpad's cloud, so only source packages are accepted. Then both source and binary packages are published. I'll update my answer accordingly. –  gertvdijk Sep 19 '12 at 15:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.