Add Pastebin Web Installers

This commit is contained in:
Kirigaya Kazuto 2019-01-14 18:56:45 +08:00
parent 239386b8f3
commit 7b0860de1b
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
-- Global: https://pastebin.com/fiCuN16y
local computer=require('computer')
print("Grab Pastebin Installer v1.1")
print("Thank you for installing Grab - The official OpenComputerScripts Installer.")
local before=computer.uptime()
os.execute("wget https://raw.githubusercontent.com/Kiritow/OpenComputerScripts/master/grab.lua -f")
print("Almost done, just a few steps...")
os.execute("grab update")
print(string.format("[Done] Grab installed in %.2fs.",computer.uptime()-before))

View File

@ -0,0 +1,10 @@
-- China: https://pastebin.com/JXxKZxwh
local computer=require('computer')
print("Grab Pastebin Installer v1.1 [China Mirror]")
print("Thank you for installing Grab - The official OpenComputerScripts Installer.")
local before=computer.uptime()
os.execute("wget http://kiritow.com:3000/Kiritow/OpenComputerScripts/raw/master/grab.lua -f")
print("Almost done, just a few steps...")
os.execute("grab update --cn")
print(string.format("[Done] Grab installed in %.2fs.",computer.uptime()-before))