{"action":"created","issue":{"url":"https://api.github.com/repos/rjpcomputing/luaforwindows/issues/85","labels_url":"https://api.github.com/repos/rjpcomputing/luaforwindows/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/rjpcomputing/luaforwindows/issues/85/comments","events_url":"https://api.github.com/repos/rjpcomputing/luaforwindows/issues/85/events","html_url":"https://github.com/rjpcomputing/luaforwindows/issues/85","id":102731433,"number":85,"title":"Lightweight version of luaforwindows for embedding scenario","user":{"login":"fbuchinger","id":287434,"avatar_url":"https://avatars.githubusercontent.com/u/287434?v=3","gravatar_id":"","url":"https://api.github.com/users/fbuchinger","html_url":"https://github.com/fbuchinger","followers_url":"https://api.github.com/users/fbuchinger/followers","following_url":"https://api.github.com/users/fbuchinger/following{/other_user}","gists_url":"https://api.github.com/users/fbuchinger/gists{/gist_id}","starred_url":"https://api.github.com/users/fbuchinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbuchinger/subscriptions","organizations_url":"https://api.github.com/users/fbuchinger/orgs","repos_url":"https://api.github.com/users/fbuchinger/repos","events_url":"https://api.github.com/users/fbuchinger/events{/privacy}","received_events_url":"https://api.github.com/users/fbuchinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T07:57:37Z","updated_at":"2015-08-24T15:14:28Z","closed_at":null,"body":"Hi,\r\n\r\nthanks or providing the luaforwindows distribution and taking out the pain of compiling the lua packages on windows! One question though: I like to embed a lightweight version of the luaforwindows distribution for performing calls to REST webservices and parsing their responses (JSON/XML). My main application would invoke the lua interpreter via command line.\r\n\r\nSo I am mainly interested embedding the lua interpreter + LuaSocket, LuaCurl, LuaXML, Date, stdlib, gzio, luaunit. Ideally, the total size of such a \"minimal\" distribution doesn't exceed 5 megabytes.\r\n\r\nMy questions:\r\n- how can i remove unneeded libraries (e.g pdflib, sublua)? Is it enough to delete the dlls from the clibs folder? Or should i do this via luarocks commands?\r\n- how can I find out about dependencies between the libraries (e.g. luacurl might require gzio)?\r\n- What about vcredist_x86.exe (Visual C runtime)? Is it required for such a distribution? Can/should I ship it or should I require it as an external dependency?"},"comment":{"url":"https://api.github.com/repos/rjpcomputing/luaforwindows/issues/comments/134242984","html_url":"https://github.com/rjpcomputing/luaforwindows/issues/85#issuecomment-134242984","issue_url":"https://api.github.com/repos/rjpcomputing/luaforwindows/issues/85","id":134242984,"user":{"login":"rjpcomputing","id":51721,"avatar_url":"https://avatars.githubusercontent.com/u/51721?v=3","gravatar_id":"","url":"https://api.github.com/users/rjpcomputing","html_url":"https://github.com/rjpcomputing","followers_url":"https://api.github.com/users/rjpcomputing/followers","following_url":"https://api.github.com/users/rjpcomputing/following{/other_user}","gists_url":"https://api.github.com/users/rjpcomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/rjpcomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjpcomputing/subscriptions","organizations_url":"https://api.github.com/users/rjpcomputing/orgs","repos_url":"https://api.github.com/users/rjpcomputing/repos","events_url":"https://api.github.com/users/rjpcomputing/events{/privacy}","received_events_url":"https://api.github.com/users/rjpcomputing/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T15:14:28Z","updated_at":"2015-08-24T15:14:28Z","body":"@fbuchinger \r\n\r\nHi,\r\n\r\n> how can i remove unneeded libraries (e.g pdflib, sublua)? Is it enough to delete the dlls from the clibs folder? Or should i do this via luarocks commands?\r\n\r\nYes that is all you need to do then run the INNO Setup compiler. But you should go a step further and remove the `docs`, `examples` and `utils` that go along with the removed modules.\r\n\r\n> how can I find out about dependencies between the libraries (e.g. luacurl might require gzio)?\r\n\r\nThe best way is looking at the modules website. I have found no better way except to run examples. Also I don't know too many modules that don't make it clear they rely on another modules.\r\n\r\n> What about vcredist_x86.exe (Visual C runtime)? Is it required for such a distribution? Can/should I ship it or should I require it as an external dependency?\r\n\r\nThe current installer checks to see if it is installed and if not it:\r\n1. Look next to the installer for a file named `vcredist_x86.exe`.\r\n2. Download during install from this github repo.\r\n\r\nTo answer your question, I think externally so it only needs to be ran the first time and not for any updates. Also there are some rules about redistributing the runtime and I think it might restrict it, but I am not sure.\r\n\r\nHope this helps."}}