Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local base = "https://raw.githubusercontent.com/Xella37/JamRunner/refs/heads/main/"
- local files = {
- "jamrunner.lua",
- "betterblittle_jamrunner.lua"
- }
- local function downloadFile(file)
- local url = base .. file
- local rawData = http.get(url)
- if not rawData then
- error("Failed to download " .. file .. "! (" .. url .. ")")
- end
- local data = rawData.readAll()
- local file = fs.open(file, "w")
- file.write(data)
- file.close()
- end
- print("Installing JamRunner.")
- for i = 1, #files do
- local file = files[i]
- print("Downloading " .. file .. "...")
- downloadFile(file)
- end
Advertisement
Add Comment
Please, Sign In to add comment