add bootstrap script and better instructions for installation

This commit is contained in:
2023-07-28 19:23:26 -04:00
parent 80de336bdb
commit af125691f7
2 changed files with 12 additions and 7 deletions

8
bootstrap.lua Normal file
View File

@ -0,0 +1,8 @@
os.execute('git clone https://git.squi.bid/eat-it /tmp/eatit-tmp')
local a = io.open('/tmp/eatit-tmp/eatit.lua', 'r')
local b = io.open(mp.command_native({'expand-path', '~~/scripts/eatit.lua'}), 'w')
b:write(a:read('*a'))
b:close()
a:close()
dofile(mp.command_native({'expand-path', '~~/scripts/eatit.lua'}))
os.execute('rm -rf /tmp/eatit-tmp')