[SDL] Embed SDL.dll in the .exe
Sylvain Beucler
beuc at beuc.net
Fri Sep 28 09:36:51 PDT 2007
Hey,
I guess that could be done simply enough, by modifying 7-zip's .exe
self-extractor, so that it runs $destdir/bin/myprog.exe after it's
done extracting the .zip (or the .zip is already extracted) ;)
And put savegames in the personal folder rather than in the game
install directory, because the install directory is likely to be
erased with such an easy setup.
--
Sylvain
On Fri, Sep 28, 2007 at 12:27:30PM -0400, Jonathan Dearborn wrote:
> Hey,
>
> If anyone wants to tackle this in Windows, here is what I suggest (thoroughly crazy):
>
> Write a program that extracts all of the necessary files (.exe, .dll, .png, .etc) from _itself_, then runs the main executable that was extracted. There you go! So you'll probably have to write a program that creates such a program.
>
> Jonny D
>
>
>
> > Date: Fri, 28 Sep 2007 17:22:53 +0200> From: beuc at beuc.net> To: sdl at lists.libsdl.org> Subject: Re: [SDL] Embed SDL.dll in the .exe> > On Fri, Sep 28, 2007 at 08:41:03AM -0600, Charles McGarvey wrote:> > FYI: Drag 'n drop installation works on Mac OS X without complete > > static linking because applications are really "bundles" or > > directories made to look like files. So you can dynamic link to > > libraries you put inside the bundle which provides the benefits of > > brain-dead installation and the benefits of dynamic linking > > (including satisfying the LGPL license).> > > I believe you still need an installer if you distribute the> application via Internet.> > > If I understand correctly:> > - the app (something.app) is displayed as a single executable to the> user, from the file browser ("Finder")> > - but it's actually a directory that contains both the executable and> the resources. Under Windows it is possible to embed resources> directly in the .exe -- or for all platforms, you can simply cat it> at the end of the .exe with an easy-to-recognize delimiter, as .zip> auto-extrators do. The OSX way makes things easier for the> programmer (just fopen()).> > - when you drag 'n drop the .app, you actually move a directory, so> it's a single operation with a file browser (but you already can do> that with most games by moving the installation directory)> > - if you got it from a HTTP or FTP website, you'd need to download> each and every files from the something.app/ directory. So instead> you have to bundle it in a single archive. Apparently OSX apps often> come as a .dmg (can it do more than a .zip btw?)> > -- > Sylvain> _______________________________________________> SDL mailing list> SDL at lists.libsdl.org> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> _________________________________________________________________
> Discover the new Windows Vista
> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
More information about the SDL
mailing list