-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.lua
More file actions
43 lines (41 loc) · 864 Bytes
/
Copy pathinstall.lua
File metadata and controls
43 lines (41 loc) · 864 Bytes
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
42
43
local site = "https://raw.githubusercontent.com"
local user = "trapperdot00"
local repo = "ccgui"
local branch = "main"
local link = site .. '/' .. user .. '/' .. repo .. '/' .. branch
local wanted_files = {
["."] = {
"ccgui.lua",
},
["ccgui"] = {
"FrameBuffer.lua",
"Point.lua",
"Screen.lua",
},
["ccgui/Widgets"] = {
"Button.lua",
"CompositeWidget.lua",
"Function.lua",
"LabeledButton.lua",
"Line.lua",
"Mark.lua",
"Polyline.lua",
"Rectangle.lua",
"Text.lua",
"Widget.lua",
},
["examples"] = {
"example_0001.lua",
"example_0002.lua",
"example_0003.lua",
"example_0004.lua",
"example_0005.lua",
}
}
for directory, files in pairs(wanted_files) do
for _, file in ipairs(files) do
local path = directory .. '/' .. file
local file_link = link .. '/' .. path
shell.execute("wget", file_link, path)
end
end