feat: add install script + readme

This commit is contained in:
Guillaume ARM 2024-05-08 21:04:49 +02:00
parent fd40a52ddc
commit c8a01d279c
2 changed files with 21 additions and 0 deletions

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# Installation
```
wget run https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/install.lua
```

16
install.lua Normal file
View File

@ -0,0 +1,16 @@
local LIST_FILES = {
'turtle-utils.lua',
'robot.lua',
'miner.lua'
};
local REPO_PREFIX = 'https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/'
local previousDir = shell.dir()
for _, filePath in pairs(LIST_FILES) do
fs.delete(filePath)
shell.execute('wget', REPO_PREFIX .. filePath, filePath)
end
shell.setDir(previousDir)