Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a deb file from a Windows application which will be run with wine. how do I make it?

As an example, I use Ubuntu Christian Edition and I find the application Virtual Rosary is installed by default.

My plan: my application will be put in the folder /opt/*application-name*, and for the 'launcher.desktop', the Exec argument will bi filled with :

Exec= wine /opt/application-name/ application-name.exe

share|improve this question
You don't need to obfuscate "Windows". – Oli Oct 13 '10 at 16:26
up vote 4 down vote accepted

Yes, you can make that happen, but it would be a bit hackish. Fine for personal use, but it would never get accepted into Ubuntu proper.

I'm not sure about your level of knowledge about debian packaging, but giving a whole packaging tutorial is out of scope for this. If you need further information, the Ubuntu Packaging Guide is a good place to start, and of course there is always the Debian New Maintainer's Guide.

Essentially all you need to do is use dh_install to drop the files in the right place. So something like this in you debian/my_package_name.install file:

application-name.exe          /opt/application-name/
application-name.desktop      /usr/share/applications/
share|improve this answer
hmm, thanks, I'will try it. And this is only for my personal use. – squallbayu Oct 13 '10 at 18:28

This is something I've personally experimented with a few times, and even made proof of concept packages. There are also a few ad-hoc packages in the archive such as pq (Progress Quest), although none of them are particularly complicated.

I suggest you follow the specification here: -- At the Developer Summit this month I hope to standardize the way we do this, or even develop a tool to do so, as I expect to have an awful lot of Windows packages in the medium term.

share|improve this answer

Your Answer


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.