Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- LigCraftSoft X Program --
- repoURI = "https://bitbucket.org/lignite0/ligcraftsoft";
- local args = {...};
- local cmd = table.remove(args, 1);
- local libname = "xlig";
- local file = libname.."/pkg";
- if not fs.exists(file) then
- print("Detect first executing...");
- local path = repoURI.."/raw/master/"..file..".lua?nocache"..math.random(0, 99999);
- local program = http.get(path);
- fs.makeDir(libname);
- local storage = fs.open(file, "w");
- storage.write(program.readAll());
- storage.close();
- program.close();
- os.loadAPI(file);
- pkg.install();
- print("LigCraftSoft installed!");
- end
- os.loadAPI(libname.."/exe");
- exe.parse({...});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement