On Mon, Feb 25, 2008 at 12:07 AM, <[EMAIL PROTECTED]> wrote: > Hi! > > I am developing an application using wxLua luaSQL for mac. Currently I > have to package the app in a rather clumsy way. First I create a > folder and move all the libs into it. Then I take the wxLuaFreeze > application, rename the bundle and add my own icon to it. Then, using > wxLuaFreeze.lua, I add an entry point in one of the scripts that are > executed when the user double clicks the bundle.
This is probably reasonable, unless you can think of a better way. > This works fine, but I cannot figure out how to put all the files > inside the bundle to allow for mac friendy installation. Is there a > way to make wxLuaFreeze use a folder inside the bundle as its working > directory and therefore be able to load libs from there. This is harder, there have been many discussions on wx-users about whether wxWidgets should have a function to get the app's path, but I think the answer has always been to not have it. The problem is that Unix doesn't give you it in argv[0] as MS Windows does. If you're lucky OSX does give it to you and you can use the args that wxLuaFreeze pushes into Lua, see the top of unittest.wx.lua. Note that C args are negative and Lua args are positive so that the positive ones match what the Lua executable does. See [wx-users] Finding the application path on Unix http://lists.wxwidgets.org/archive/wx-users/thrd26.html#26935 Regards, John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users