-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.lua
41 lines (41 loc) · 890 Bytes
/
install.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--install template
local function download(url,path,b,bu)
print(bu..url.."->"..b..path)
local file = fs.open(b..path,"w")
local data = http.get(bu..url)
file.write(data.readAll())
file.close()
end
--roots
local base = "wip/"
local baseurl = "https://raw.githubusercontent.com/AlphaTechNinja/wip-Coding/main/"
--file
local function file(name)
download(name,name,base,baseurl)
end
--main
print("installing...")
file("cpu.lua")
file("value.lua")
file("commands.lua")
file("test.wip")
file("run.lua")
--next dir
file("addons/math.lua")
file("addons/logic.lua")
file("addons/string.lua")
file("addons/table.lua")
file("addons/io.lua")
file("addons/info.lua")
file("addons/functions.lua")
--next
file("extras/fs.lua")
file("extras/graphics.lua")
file("extras/http.lua")
file("extras/term.lua")
--demos
file("demo/graphics.lua")
file("demo/load.wip")
file("demo/test.lua")
--end
print("finished")