Last active
March 17, 2024 06:07
-
-
Save cyberbit/993372d662918aeb4973701ac7122987 to your computer and use it in GitHub Desktop.
CCMaps Installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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