Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --setup file
- --this file downloads all required assets, then reboots the computer
- --this program is for Minecraft 1.16.5, CC Tweaked
- local SetFile = fs.open("Setup_Config","r")
- local Version = SetFile.readLine(1)
- local Package = SetFile.readLine(2)
- local Update_2 = false
- SetFile.close()
- shell.run("pastebin","get","DgmEm05E","Temp_LatestVersion")
- local VERSION = fs.open("Temp_LatestVersion","r")
- if VERSION.readLine(1) == "2.0" then
- Update_2 = true
- end
- VERSION.close()
- fs.delete("Temp_LatestVersion")
- function ContinueSetup()
- shell.run("pastebin","get","7rHH9pXK","C_Pastebin")
- shell.run("pastebin","get","aqSRKnMF","ApertureOS_Downloader")
- sleep(3)
- shell.run("pastebin","get","PnjkfYyW","ApertureOS_Boot")
- shell.run("pastebin","get","Fujaq0uU","ApertureOS_SecurityCheck")
- shell.run("pastebin","get","pJANakKB","AppPrompt_AppNotFound")
- shell.run("pastebin","get","XumN3cdF","SystemSettings")
- shell.run("pastebin","get","PnjkfYyW","ApertureOS_Boot")
- if fs.exists("startup") == false then
- shell.run("pastebin","startup","xByKNAZS","OS")
- end
- if fs.exists("OSSettings") == false then
- local OSSet = fs.open("OSSettings","w")
- OSSet.writeLine("OS Version")
- OSSet.writeLine(Version)
- OSSet.writeLine("Package")
- OSSet.writeLine(Package)
- OSSet.close()
- shell.run("pastebin","get","XumN3cdF",".settings")
- end
- local file = fs.open("OS_Certificate","w")
- file.writeLine("APERTURE OS DOWNLOAD CERTIFICATE")
- file.writeLine("VERSION DOWNLOADED")
- file.writeLine(Version)
- file.writeLine("DATE DOWNLOADED")
- file.writeLine(os.date())
- file.writeLine("OS PACKAGE")
- file.writeLine(Package)
- file.close()
- shell.run("pastebin","get","kvzCYtv5","AppList")
- sleep(3)
- os.reboot()
- end
- if Update_2 == true then
- shell.run("pastebin","run","H4QAKJGf") --runs dedicated online updater for the 2.0 update
- else
- ContinueSetup()
- end
Add Comment
Please, Sign In to add comment