Moving .cs files and libraries into the .app
by Michael Gesner · in Torque Game Engine · 01/01/2004 (10:45 pm) · 3 replies
I've been attempting to move the .cs files (hopefully also the .dso's) and the libraries into the .app so that we can enable drag/drop installs and patching without using .diff.
I've noticed that the fileio is quite a mess. Has anyone gotten these files packed into the .app ?
I've noticed that the fileio is quite a mess. Has anyone gotten these files packed into the .app ?
#2
01/01/2004 (11:25 pm)
Part of the problem with that solution is patching the libraries. Either way, we require files to be in the .app package. I appreciate the patching suggestion, and it may be a great way to download auto patches, but does not solve our library registration problem across versions of OS X.
#3
I haven't looked at this yet, but I think you only have to change what the app considers the working directory...
contacting 21-6 or Bravetree about the changes they did (or contacting David Chait, who probably did the aforementioned changes) might get you more info, or even code
Patching then becomes the matter of running a script in sudo super user mode to get write privs to the package, as you can't assume that the user has write privs to it.
That might not even work, if the user doesn't have admin privs, or doesn't know the sudo password...
You might want to ask about this on the Apple game dev list, without restraining it to TGE
01/02/2004 (9:25 am)
Beffy, this is for MacOS X, and both Marble Blast and ThinkTanks shipped as proper MacOS X apps, ie in packages (aka bundles), which is what Michael is talking about...I haven't looked at this yet, but I think you only have to change what the app considers the working directory...
contacting 21-6 or Bravetree about the changes they did (or contacting David Chait, who probably did the aforementioned changes) might get you more info, or even code
Patching then becomes the matter of running a script in sudo super user mode to get write privs to the package, as you can't assume that the user has write privs to it.
That might not even work, if the user doesn't have admin privs, or doesn't know the sudo password...
You might want to ask about this on the Apple game dev list, without restraining it to TGE
Associate Stefan Beffy Moises
EDIT: hm, just tried... weird thing is, TGE seems to extract the files from the zip while reading it... not sure it was always this way...
EDIT2: nope, it only creates the folders and some cs files (banlist.cs and prefs.cs) and of course it creates the .dso's in there... so I'm not really sure thats the best way for your patching... although it would work to just replace the zips with a patch