Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Executable found HERE: fJ409KH1
- --warning: crappy code that was made in 2 minutes ahead!
- --I know this code is noobish, but it works, doesn't it? It's just an installer! It only needs to run once. The actual program is well-written, I assure you.
- function installSapphari()
- shell.run("delete sapphInt/startup")
- shell.run("delete sapphInt/sapphUtils")
- shell.run"delete sapphInt/redirect" --leaves bookmarks intact
- shell.run"delete Sapphari"
- shell.run("mkdir sapphInt")
- shell.run("pastebin get fJ409KH1 sapphInt/startup")
- shell.run("pastebin get fU9Kj9zr sapphInt/redirect")
- shell.run("pastebin get hyNPyhQZ sapphInt/sapphUtils")--10th ln
- --make bookmarks
- ff=fs.open("sapphInt/sapphBookmarks","w")
- bo = {}
- bo[1] = "Add Bookmark"
- ff.writeLine(textutils.serialize(bo))
- ff.close()
- --make a shortcut to sapphari
- ff=fs.open("Sapphari","w")
- ff.writeLine('shell.run("sapphInt/startup")')
- ff.close()--20th ln
- print"Sapphari installed. Run Sapphari to open!"
- print"opening for first time"
- shell.run("Sapphari")
- end
- print"Note: this is temporarily. A better installer will be available eventually."
- print"Welcome to the LimitlessBox!"
- print"Please choose what you'd like to install."
- print"1. Sapphari - HTTP Web Browser!"
- print"End of list. Choose by entering the number in."
- local input="1"--meh, there's only one for now.
- if input=="1" then
- print"Installing Sapphari..."
- installSapphari()
- else
- print"You did not select a valid thing. Bye!"
- end
Advertisement
Add Comment
Please, Sign In to add comment