Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Create installer .deb or .rpm
Create installer .deb or .rpm [message #39233] |
Sat, 02 March 2013 22:32 ![Go to next message Go to next message](theme/default/images/down.png) |
fedePereyra
Messages: 4 Registered: May 2011
|
Junior Member |
|
|
Hi everyone,
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++?
Regards.
|
|
|
Re: Create installer .deb or .rpm [message #39234 is a reply to message #39233] |
Sun, 03 March 2013 00:11 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
|
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 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](images/smiley_icons/icon_smile.gif)
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](images/smiley_icons/icon_smile.gif)
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 ), 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 344 times)
|
|
|
|
Re: Create installer .deb or .rpm [message #39243 is a reply to message #39233] |
Sun, 03 March 2013 21:43 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
|
Hi Federico,
I started working on the packaging macro I talked about... It seems promising, but as I don't use Ubuntu nor Debian I had no chance to test it yet I'll try to run it on an actual Debian tomorrow and than post here as soon as I fix up all the little details that probably come up. So please, just hang on one more day.
Honza
|
|
|
|
Re: Create installer .deb or .rpm [message #39249 is a reply to message #39246] |
Mon, 04 March 2013 20:57 ![Go to previous message Go to previous message](theme/default/images/up.png) |
|
Ok, here it is ![Smile](images/smiley_icons/icon_smile.gif)
See included README file for instructions. The macros are a bit hacky, but it is the best I could do without extending TheIDE ![Smile](images/smiley_icons/icon_smile.gif)
Let me know if it satisfies your needs. And of course let me know if there are any problems
Also, anyone else working with debian based distros is encouraged to try it and let me know their opinion.
Bets regards,
Honza
-
Attachment: Deb.tar.gz
(Size: 10.00KB, Downloaded 345 times)
|
|
|
Goto Forum:
Current Time: Sun Sep 01 07:46:02 CEST 2024
Total time taken to generate the page: 0.02286 seconds
|