Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- PH
- Just Does Games
- PH (Program Hub) is what the name implies.
- This is just a hub for programs, games, applications, and
- other items like OS and API items
- There is something else like this out on the web, but
- currently I am in a discord chat where people post things
- on #creations and I have a feeling that nothing is
- being posted there anymore so... I created this.
- These programs I do not own. I just make it easier to
- find and use them. (does not mean some of them are mine. just look at the owner)
- --]]
- local args = {...}
- if args[1] then
- if args[1] == "-u" then
- print("Updating...")
- if fs.exists("/tmp-update.lua") then fs.delete("/tmp-update.lua") end
- shell.run("pastebin get BCyqs0SP /tmp-update.lua")
- if fs.exists("/tmp-update.lua") then
- if fs.getSize("/tmp-update.lua") ~= fs.getSize(shell.getRunningProgram()) then
- print("Update found!")
- fs.delete(shell.getRunningProgram())
- fs.move("/tmp-update.lua", shell.getRunningProgram())
- print("Update Applied.")
- else
- print("Already on latest update.")
- fs.delete("/tmp-update.lua")
- end
- else
- print("Failed to obtain update.")
- end
- end
- end
- local w,h = term.getSize()
- local data = {}
- function createApp(typ, name, owner, date, desc, link)
- data[#data+1] = {
- type = type,
- name = name,
- owner = owner,
- date = date,
- desc = desc,
- link = link,
- }
- end
- createApp("Debug", "name", "owner", "date", "desc", "link")
Add Comment
Please, Sign In to add comment