This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
5logank's profile picture

How can I use github to download files on a computer in computercraft

Started by 5logank, 19 October 2014 - 10:05 PM
5logank #1
Posted 20 October 2014 - 12:05 AM
I was planning to make an os for computercraft but i want to make it auto update using github. Could someone please help me.
metron80 #2
Posted 04 November 2014 - 03:42 AM
Here: http://www.computercraft.info/forums2/index.php?/topic/4072-github-repository-downloader/
Maybe you can make it work for your needs.
KingofGamesYami #3
Posted 04 November 2014 - 03:55 AM
1 - Check out the http api (specifically http.get)
2 - Learn the fs api
3 - Take a look at this list of things you need to know for an OS (Note: there are many things in the os section I don't consider OS's)
Spoilerfs api
http - optional, but awesome
tables, tables, tables!
term api
os.pullEvent
all event types -critical
coroutines
disk api - optional
monitor support - optional
colors
error
pcall
string lib
objects - optional
api creation
know most of the lua 5.1 manual
know which things are broken in luaJ

PS: I don't mean to sound harsh, but creating an actual "OS" is not a good project for a beginner, (I see this is your second post). Make some simpler programs first, especially APIs. APIs are great, because you might use them in your OS, if you decide to develop one.