-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcraft-installer.lua
More file actions
27 lines (25 loc) · 1003 Bytes
/
Copy pathcraft-installer.lua
File metadata and controls
27 lines (25 loc) · 1003 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
print("Installing Craft-Web")
shell.run("wget https://raw.githubusercontent.com/Elemnto56/Craft-Web/refs/heads/main/craft-web.lua")
shell.run("wget https://raw.githubusercontent.com/Elemnto56/Craft-Web/refs/heads/main/window-launch.lua")
local x = ""
if #fs.find("pixelui") == 0 then
while true do
print("Craft-Web requires a modified PixelUI to operate. Do you want me to install it? (y/n)")
x = io.stdin._handle.readLine()
if x == "y" then
print("Installing PixelUI...")
shell.run("wget https://raw.githubusercontent.com/Elemnto56/Craft-Web/refs/heads/main/pixelui.lua")
print("Done! Goodbye.")
os.queueEvent("terminate")
sleep(2)
else if x == "n" then
print("Goodbye!")
os.queueEvent("terminate")
sleep(2)
else
printError("That was not an option.")
end
sleep(1)
if x == "y" or x == "n" then break end
end
end end