Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(not term.isColor or not term.isColor())then
- print("Windows 8.1 Can only run on advanced computers and turtles!")
- error()
- end
- if(not http)then
- print("Windows 8.1 requires HTTP Api to run!")
- error()
- end
- function downloadFile(path, url)
- print("Downloading: " .. path)
- data = http.get(url).readAll()
- file = assert(io.open(path, "w"))
- file:write(data)
- file:close()
- end
- if(fs.exists("/os"))then
- fs.delete("/os")
- end
- if(fs.exists("startup"))then
- fs.delete("startup")
- end
- fs.makeDir("/os")
- downloadFile("/installer", "https://raw.githubusercontent.com/NejcraftCCprojects/CC2W8/master/source/installer")
- shell.run("/installer")
Advertisement
Add Comment
Please, Sign In to add comment