Skip to content

Instantly share code, notes, and snippets.

@cyberbit
Last active March 17, 2024 06:07
Show Gist options
  • Save cyberbit/993372d662918aeb4973701ac7122987 to your computer and use it in GitHub Desktop.
Save cyberbit/993372d662918aeb4973701ac7122987 to your computer and use it in GitHub Desktop.
CCMaps Installer
-- CCMaps Installer by cyberbit
-- MIT License
-- Version 2024-03-17
local paths = {
['ccmaps.lua'] = 'https://gist.githubusercontent.com/cyberbit/b64e2e04b1006778b9077553768e07f4/raw/ccmaps.lua',
['plotter.lua'] = 'https://github.com/cyberbit/plotter/releases/download/v0.0.4/plotter.lua'
}
for path, url in pairs(paths) do
local logicalPath = shell.resolve(path)
print('Downloading ' .. path .. ' from ' .. url)
local response = http.get(url)
if response then
local file = fs.open(logicalPath, 'w')
file.write(response.readAll())
file.close()
end
end
print('Done! Run ccmaps.lua to launch.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment