feat: add install script + readme
This commit is contained in:
parent
fd40a52ddc
commit
c8a01d279c
5
README.md
Normal file
5
README.md
Normal 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
16
install.lua
Normal 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)
|
||||||
Loading…
Reference in New Issue
Block a user