Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- PC version of Cydia, compatible with the
- Evasi0n8 jailbreak
- --]]
- x, y = term.getSize()
- function printc(text, yp)
- cx = math.ceil((x/2)-(string.len(text)/2))
- term.setCursorPos(cx, yp)
- print(text)
- end
- function installerD()
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- printc("Preparing system", 4)
- term.setTextColour(0x8000)
- sleep(1)
- end
- function installerF()
- term.setTextColour(128)
- printc("Download completed", 5)
- sleep(2)
- printc(" ", 6)
- printc("Moving files", 6)
- sleep(0.3)
- printc(" ", 8)
- printc("Finishing Operation", 7)
- sleep(1.3)
- printc(" ", 10)
- printc("checking for startup", 8)
- sleep(0.7)
- if fs.exists("startup") then
- printc("startup exists", 9)
- else
- printc("startup doesn't exist", 9)
- end
- term.setTextColour(1)
- sleep(1)
- printc("Finishing process", 10)
- sleep(2)
- term.clear()
- term.setCursorPos(1, 1)
- end
- function Uninstall1()
- term.setTextColour(128)
- sleep(1)
- print ("Removed files")
- sleep(2)
- term.clear()
- term.setCursorPos(1, 1)
- end
- if pocket then
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColour(colours.black)
- term.setBackgroundColour(colours.red)
- print ("Please note that none ")
- print ("(or not many) tweaks or ")
- print ("themes work with OSCM ")
- print ("as of yet, this will ")
- print ("improve over time. ")
- term.setBackgroundColour(colours.black)
- term.setTextColour(colours.white)
- launch = read()
- if launch == "" then
- else
- end
- end
- term.setTextColour(colours.white)
- term.setBackgroundColour(256)
- term.clear()
- term.setCursorPos(1, 1)
- if fs.exists("UI/statusbar") then
- shell.run("UI/statusbar")
- elseif fs.exists("System/UI/statusbar") then
- term.setBackgroundColour(128)
- term.setCursorPos(1, 1)
- term.clearLine()
- write ("Cydia installer")
- shell.run("System/UI/statusbar")
- else
- term.setBackgroundColour(128)
- print ("Running in compatibility mode for other firmware ")
- end
- term.setBackgroundColour(256)
- term.setCursorPos(1, 2)
- if pocket then
- print("Cydia 1.1.12")
- print(" ")
- print("Type a name to download it")
- print("type 'desc' at the end")
- print("for information")
- print(" ")
- print("Available:")
- print(" ")
- print("CydiaInstaller")
- print("Classic Terminal")
- print("Verdict")
- term.setCursorPos(1, 20)
- else
- print (" Cydia PC 1.1.12")
- print (" ")
- print (" Type a name to download the tweak")
- print (" Tweaks:")
- print (" CydiaInstaller")
- print (" Verdict")
- print (" Classic Terminal")
- print (" ClearBoard")
- term.setCursorPos(1, 16)
- print (" For tweak descriptions type the name and 'desc'")
- print (" ")
- end
- answer = read ()
- if answer == "classic terminal" then
- installerD()
- shell.run("move CC CraftOS/CC")
- shell.run("move NC CraftOS/NC")
- shell.run("move MPlayer CraftOS/MPlayer")
- shell.run("pastebin get GyR4vC7D CC")
- shell.run("pastebin get STm9SzAV NC")
- shell.run("pastebin get xPUEYSmC MPlayer")
- installerF()
- end
- if answer == "classic terminal desc" then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("CraftOS/StatusBar")
- term.setCursorPos(1, 2)
- print ("This brings you back the old Terminal by bypassing the Login screen and the Terminal options screen, this may be a little slow at first. Only manual uninstallation (rename files to original name)")
- close = read ()
- end
- if answer == "uninstall classic terminal" then
- installerD()
- shell.run("delete NC")
- shell.run("delete CC")
- shell.run("delete MPlayer")
- shell.run("move CraftOS/MPlayer MPlayer")
- shell.run("move CraftOS/NC NC")
- shell.run("move CraftOS/CC CC")
- Uninstaller1()
- end
- if answer == "verdict" then
- installerD()
- shell.run("pastebin get B5m6dnfD Verdict")
- installerF()
- end
- if answer == "verdict desc" then
- print ("Verdict is the safest way to edit your system version to anything you want without any errors occouring. On compatible versions you can edit the StatVer file (The file showing the version on the StatusBar) on versions below you will only be able to edit the version file, not both.")
- close = read ()
- end
- if answer == "uninstall verdict" then
- installerD()
- fs.delete("Verdict")
- Uninstaller1()
- end
- if answer == "cydiainstaller" then
- installerD()
- if fs.exists("Cydia") then
- fs.delete("Cydia")
- else
- end
- shell.run("pastebin get 45tc50kH Cydia")
- installerF()
- end
- if answer == "cydiainstaller desc" then
- print ("Cydia Installer is the downloaded version of the new online Cydia app for Jailbroken Computers, to refresh or update this you will need to download the app again from the online version of Cydia. Host app used to install System modifications and themes.")
- print (" ")
- print ("Update 1.1.12:")
- print (" ")
- print ("- Refreshed Cydia, now only shows tweaks compatible")
- print (" with OS C 10 and later.")
- close = read ()
- end
- if answer == "uninstall cydiainstaller" then
- installerD()
- fs.delete("Cydia")
- Uninstaller1()
- end
- if answer == "clearboard" then
- installerD()
- print ("Downloading installer...")
- shell.run("pastebin get AVNUuJ5m ClearInstall")
- print ("Downloading Resources...")
- shell.run("pastebin get qVrZWhGC ClearBoard")
- shell.run("pastebin get HU9t8UXW ClearUI")
- installerF()
- shell.run("ClearInstall")
- end
- if answer == "clearboard desc" then
- print ("ClearBoard is the first tweak that has compatibility with OS C 10 and takes advantage of the new desktop, for those who have used the desktop they will notice it has different UI colours to the rest of the system, not anymore, ClearBoard changes that by giving the desktop the same UI colours as the Terminal (grey and white), this makes the desktop fit into the system like it was supposed to!")
- print (" ")
- print ("Update 1.1:")
- print (" ")
- print ("- Compatible with Cydia on OS C 10")
- close = read ()
- end
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement