Marlingaming

Aperture Science OS System - Setup Script

Sep 15th, 2021 (edited)
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. --setup file
  2. --this file downloads all required assets, then reboots the computer
  3. --this program is for Minecraft 1.16.5, CC Tweaked
  4. local SetFile = fs.open("Setup_Config","r")
  5. local Version = SetFile.readLine(1)
  6. local Package = SetFile.readLine(2)
  7. local Update_2 = false
  8. SetFile.close()
  9. shell.run("pastebin","get","DgmEm05E","Temp_LatestVersion")
  10. local VERSION = fs.open("Temp_LatestVersion","r")
  11. if VERSION.readLine(1) == "2.0" then
  12. Update_2 = true
  13. end
  14. VERSION.close()
  15. fs.delete("Temp_LatestVersion")
  16.  
  17. function ContinueSetup()
  18. shell.run("pastebin","get","7rHH9pXK","C_Pastebin")
  19. shell.run("pastebin","get","aqSRKnMF","ApertureOS_Downloader")
  20. sleep(3)
  21. shell.run("pastebin","get","PnjkfYyW","ApertureOS_Boot")
  22. shell.run("pastebin","get","Fujaq0uU","ApertureOS_SecurityCheck")
  23. shell.run("pastebin","get","pJANakKB","AppPrompt_AppNotFound")
  24. shell.run("pastebin","get","XumN3cdF","SystemSettings")
  25. shell.run("pastebin","get","PnjkfYyW","ApertureOS_Boot")
  26. if fs.exists("startup") == false then
  27. shell.run("pastebin","startup","xByKNAZS","OS")
  28. end
  29. if fs.exists("OSSettings") == false then
  30. local OSSet = fs.open("OSSettings","w")
  31. OSSet.writeLine("OS Version")
  32. OSSet.writeLine(Version)
  33. OSSet.writeLine("Package")
  34. OSSet.writeLine(Package)
  35. OSSet.close()
  36. shell.run("pastebin","get","XumN3cdF",".settings")
  37. end
  38. local file = fs.open("OS_Certificate","w")
  39. file.writeLine("APERTURE OS DOWNLOAD CERTIFICATE")
  40. file.writeLine("VERSION DOWNLOADED")
  41. file.writeLine(Version)
  42. file.writeLine("DATE DOWNLOADED")
  43. file.writeLine(os.date())
  44. file.writeLine("OS PACKAGE")
  45. file.writeLine(Package)
  46. file.close()
  47. shell.run("pastebin","get","kvzCYtv5","AppList")
  48. sleep(3)
  49. os.reboot()
  50. end
  51.  
  52. if Update_2 == true then
  53. shell.run("pastebin","run","H4QAKJGf") --runs dedicated online updater for the 2.0 update
  54. else
  55. ContinueSetup()
  56. end
Add Comment
Please, Sign In to add comment