Xelostar

JamRunner installer

Aug 18th, 2026
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | Gaming | 0 0
  1.  
  2. local base = "https://raw.githubusercontent.com/Xella37/JamRunner/refs/heads/main/"
  3.  
  4. local files = {
  5.     "jamrunner.lua",
  6.     "betterblittle_jamrunner.lua"
  7. }
  8.  
  9. local function downloadFile(file)
  10.     local url = base .. file
  11.  
  12.     local rawData = http.get(url)
  13.     if not rawData then
  14.         error("Failed to download " .. file .. "! (" .. url .. ")")
  15.     end
  16.     local data = rawData.readAll()
  17.  
  18.     local file = fs.open(file, "w")
  19.     file.write(data)
  20.     file.close()
  21. end
  22.  
  23. print("Installing JamRunner.")
  24. for i = 1, #files do
  25.     local file = files[i]
  26.     print("Downloading " .. file .. "...")
  27.  
  28.     downloadFile(file)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment