5bitesofcookies

GlassInstaller/Updater

Jun 17th, 2013
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. --patched for v0.3.3
  2. function pb(file, name)
  3. shell.run("rom/programs/http/pastebin get "..file.." "..name.."")
  4. end
  5. if autoUpdate == false or autoUpdate == nil then
  6. print("Install glass alpha v0.3.3? Make sure you're on a basic computer.")
  7. print("Y/N")
  8. input = read()
  9. if input == "n" or input == "N" or input == "NO" or input == "no" or input == "No" or input == "nO" then
  10. error()
  11. end
  12. end
  13. --first, delete the old glass
  14. print("Deleteing the old glass files. Terminate within 4 seconds to stop.")
  15. sleep(4)
  16. if fs.exists("glass") == true then fs.delete('glass') end
  17. if fs.exists("ccglass/ccghelp") then fs.delete("ccglass/ccghelp") end
  18. if fs.exists("ccglass/options") then fs.delete("ccglass/options") end
  19. if fs.exists("Launch") then fs.delete("Launch") end
  20. if fs.exists("glassside") and not fs.exists("glasstrans") then
  21. t = fs.open("glasstrans", "w")
  22. t.writeLine("0.75")
  23. t.close()
  24. end
  25. pb("iHE2sapd", "Glass")
  26. pb("CH0Ms8Vi", "Launch")
  27. pb("SUW8cq9j", "goroutine")
  28. fs.makeDir('CCGlass')
  29. pb("zC2R4DSC", "CCGlass/ccghelp")
  30. pb("kcgj5v0M", "CCGlass/options")
  31. pb("Y5tWMdgq", "glassTheme")
  32. print("Deleting installer")
  33. fs.delete( shell.getRunningProgram() )
Advertisement
Add Comment
Please, Sign In to add comment