![]() |
Distributing Binary...
Hi All,
I've just finished my first game and want to "release" it, but how? I've read some of the information on debian packages etc but they seem to be overkill for what I need. for example http://wiki.maemo.org/Documentation/...ebian_Packages The instructions for creating a package are actually twice as long as my source code :) I have a simple app written in C, its made up of one binary and one png file for gfx. Is there no simpler way to do this? Cheers Jamie |
Re: Distributing Binary...
Making a simple debian package really isn't that difficult. I can't program for ****, yet I'm able to package things up. How is a reverse situation even possible? :)
|
Re: Distributing Binary...
Quote:
Of course you could just release a tarball hosted "somewhere" and hope people bother with extracting it and running the program via terminal (or copying the .desktop etc files to correct places) Also as stated the helper scripts make the packaging rather simple, just follow the instructions. |
Re: Distributing Binary...
LOL, may seem strange but I come from a large programming background, but zero linux. and its all very strange :)
Perhaps you can detail how to do it?, I will be releasing my source code to help any programmers along. Cheers |
Re: Distributing Binary...
I would suggest getting MADDE and getting to know how it's done there, maybe it's a bit clearer.
|
Re: Distributing Binary...
Quote:
In short run dh_make, edit debian/rules to make your program compile/install, edit debian/control for build dependencies and other details, build with dpkg-buildpackage |
Re: Distributing Binary...
grrrr...
Well I've spent the best part of my night trying to make sense of this but am failing miserably. i've ran dh_make, i've changed my debian/control file (added icon etc) I just cannot get it to compile my app in the debian/rules, my app was quite simple so didn't have a make file, so I created a simple makefile for the packager to use so now it compiles my app but doesn't install it(add it to the deb file). its trying to run the makefile with the install target but what am I supposed to put in there? I presume some kind of copy command, but to where? It looks like the rules file passes DESTDIR variable to "make" but how do implement that? Please, any help? |
Re: Distributing Binary...
Quote:
About DESTDIR case. You need 'install' target in you Makefile that uses DESTDIR. There is one example. Code:
install: |
Re: Distributing Binary...
Thanks Rontti,
sorry my message didn't have more detail, I wrote it at 1am after 5 hours of trying and was too tired to make much sense :) anyway, you're example for the makefile is brilliant and makes sense but the created .deb file still doesn't contain the binary. Thanks again, and thanks in advance if you can help me out a bit more. here is my makefile Code:
all: and here is the results of the dpkg-package are: Code:
dpkg-buildpackage: source package is de-lite |
Re: Distributing Binary...
You also need clean target.
Code:
all: |
Re: Distributing Binary...
Hi Rontti,
Thanks again, i'll try that when I get home from work tonight. I did see the clean error but the system ignored it and so did I :) I'll post my results later. |
Re: Distributing Binary...
Hi Rontti, thanks so much,
I now have it cracked! you're help made it possible, but even after that it took a good few hours to figure out where things need to go properly (icons and such) its easy once you've done it once but first time out its very hard and the documents don't help much at all. so I really appreciate your help. One more tiny question. My game installs the binary to /usr/bin/ but I also have the games gfx in a .png file, currently i'm storing this in the same place, is this ok or should I be storing it elsewhere? Thanks again. |
Re: Distributing Binary...
Quote:
|
Re: Distributing Binary...
Hi Rob1n,
Thanks, I just figured out about opt, so I've stuck it there. in a subfolder of course. thanks guys |
Re: Distributing Binary...
after some further problems with the autobuilder which I figured out myself I have finally managed to sucessfully submit my game to the extras-dev repo, if you're interested I started a new thread about it here:
http://talk.maemo.org/showthread.php?t=43927 Thanks all. |
All times are GMT. The time now is 10:22. |
vBulletin® Version 3.8.8