On 30 March 2012 11:36, James Paige <[email protected]> wrote: > On Fri, Mar 30, 2012 at 11:32:04AM +1300, Ralph Versteegen wrote: >> On 30 March 2012 05:59, James Paige <[email protected]> wrote: >> > I was reading up on the debian package format. One thing I was delighted >> > to discover is that the file format is much simpler than I expected, and >> > the only tools we really need are "ar", "tar" and "gzip" and since all >> > of those have Windows ports, it should be possible to export a game as a >> > .deb file just as easily on Windows as Linux. >> >> Slackware's is even simpler ;) I could easily add Slackware support, >> but it's a fairly unpopular distribution. > > How do slackware packages work?
They're just an archive containing files with absolute path (eg. /usr/bin/global) plus an optional .sh install script to create needed links or whatever else. All the important information is stored in the package filename! >> > I decided it would be best to create the deb package with a copy of >> > ohrrpgce-game included, rather than relying on declared dependency to a >> > shared ohrrpgce package. This is slightly un-debianlike, and wastes a >> > small amount of disk space if somebody installs a large number of OHR >> > games,but I think with all things considered, it is simpler and better >> > to do it that way. >> >> Doesn't Debian's package manager automatically download and install >> dependencies? I'm worried about a user installing two games with >> different versions of ohrrpgce-game, breaking one of the games. > > Yes, exactly, and that is why I want to NOT rely on a declared > dependency on the ohrrpgce .deb package. Instead I will include a copy > of ohrrpgce-game in each game's distribution, just like for the zip and > the Windows installer. Do you mean that you can't specify the required version? Being on a distro without a "real" package manager, I thought that was the whole point of package managers! >> > The one big issue I still need to resolve is package naming. I want to >> > make sure that you can't export your game with a package name that >> > conflicts with a package name in the archive. >> > >> > One option is to prefix all package names with ohr- but I dislike that >> > because it is inconsistend with the way games in debian packages are >> > usually named (the are usually just the title) and I draws attention >> > unnecesarily to the fact that the game was made with an engine. The >> > player who is installing the game doesn't need to know that right in the >> > filename. >> > >> > The other option I thought of was to include a list of package names to >> > disallow. Generating/updating this list is easy with: >> > >> > apt-cache pkgnames > list.txt >> > >> > ...but that list of package names is 246k gzip compressed... although I >> > guess it does not need to be bundled into the ohrrpgce distribution. On >> > Debian boxes the list can be generated on the fly, and on Windows, Mac, >> > and Non-Debian Linuxen, it can be downloaded when needed using wget, >> > just like how the Innosetup installer is downloaded. >> > >> > Yeah, I guess just typing this helped me decide which way to go. I'll >> > use the apt-cache pkgnames method. :) >> > >> > --- >> > James >> > _______________________________________________ >> > Ohrrpgce mailing list >> > [email protected] >> > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >> _______________________________________________ >> Ohrrpgce mailing list >> [email protected] >> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >> > _______________________________________________ > Ohrrpgce mailing list > [email protected] > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
