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.

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
2  
You don't need to obfuscate "Windows". –  Oli Oct 13 '10 at 16:26

2 Answers 2

up vote 3 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: https://blueprints.edge.launchpad.net/software-center/+spec/other-n-wine-software-center -- 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

 
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.