Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Create installer .deb or .rpm
Re: Create installer .deb or .rpm [message #39234 is a reply to message #39233] Sun, 03 March 2013 00:11 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Federico,

fedePereyra wrote on Sat, 02 March 2013 22:32

I'm new in Ultimate++ and I'm developing an application. I need create an installer for this applications for Ubuntu (.deb or .rpm). My question is how i can do this in Ultimate++?


The fact that you are new to U++ is not a problem when it comes to packaging, much more important is what you know about how package managers work...

I understand you want to distribute your application on Ubuntu, so you should use deb (rpm can work there too, but deb is standard). Now, there is many ways how to create a deb package, I'd say at least 20, even if I don't count minor variations Smile Probably the best source to learn about debs is Debian Policy Manual. It describes mainly various files and processes that play some role in various stages of life of .deb package. It is quite long too and took me several iteration to comprehend most of it Smile

Another thing is that each type of application has some specific packaging properties. In general you should know well how linux filesystem is organized and where the files should be put. Also the intended audience may influence your decisions, e.g. whether you want to support multiple architectures and/or distribution versions or if you just want to make your life simpler when installing your application on couple PCs on local network.

If you tell me little more about what exactly you need, I can help. I think the easiest way should be adding a subpackage to your application that would hold all the additional files needed for packaging. The process itself can be simply scripted then and if you are interested in integrating it with TheIDE, it is possible to create a macro bound to keyboard shortcut that would launch the packaging script.

Thinking of it, it might even be possible to write such thing as a generic package, so any application could be packaged just by adding a package and few special files... I have to think about that, it might be quite helpful Smile

Meanwhile, you can have a look at the attached script. I used that to package sandbox/Watchdog/Server when I needed easy way to deploy it on a server. It contains setting specific to my environment, so I haven't committed it to svn, but it should still work. It is not perfect (actually it is ugly and dirty Smile ), but it might work for other packages as well, perhaps with little or no work. If you don't plan to use it on big scale, it should be enough, otherwise I can help you to put together some cleaner solution.

Best regards,
Honza

  • Attachment: upp2deb.sh
    (Size: 2.14KB, Downloaded 334 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using HexView to view a file
Next Topic: с++ low-level
Goto Forum:
  


Current Time: Tue May 14 03:06:40 CEST 2024

Total time taken to generate the page: 0.01309 seconds