lpenap

Big Reactors Control Program Installer

Jul 21st, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. -- Installer for my forked version of Computercraft Big Reactors Control Program
  2. -- https://github.com/lpenap/computercraft-bigreactor-control
  3. -- Updated 2017, Sep, 19
  4. --
  5. -- The official repo doesn't have this bootstraped installation procedure yet:
  6. -- https://github.com/sandalle/minecraft_bigreactor_control
  7. --
  8. -- Install (from an advanced computer):
  9. -- pastebin run 3W2G3Vc9
  10. -- OR
  11. -- pastegin run 3W2G3Vc9 <branch>
  12. -- Where:
  13. --   <branch> Remote branch to use (i.e: develop, master, etc)
  14. --            Defaults to master
  15.  
  16. local tree = select(1,...)
  17. if not tree then
  18.   tree = 'master'
  19. end
  20. print ("Bootstrapped installer for Big Reactors Control Program")
  21. print ("Going to fetch installer from " .. tree .. " tree")
  22. local url = ('https://raw.githubusercontent.com/lpenap/computercraft-bigreactor-control/%s'):format(tree)
  23. local response = http.get(url..'/install.lua').readAll()
  24. if response == nil then
  25.   print ("Error while fetching installer from github")
  26. else
  27.   print ("Executing installer...")
  28.   loadstring(response)()
  29. end
Advertisement
Add Comment
Please, Sign In to add comment