Update installer.md
This commit is contained in:
@@ -6,11 +6,11 @@ This is just a script which helps you to setup your program to automatically ins
|
|||||||
Here is a very basic one which just installs basalt.lua if don't exist:
|
Here is a very basic one which just installs basalt.lua if don't exist:
|
||||||
```lua
|
```lua
|
||||||
--Basalt configurated installer
|
--Basalt configurated installer
|
||||||
local filePath = "basalt.lua" --here you can change the file path default: basalt.lua
|
local filePath = "basalt" --here you can change the file path default: basalt
|
||||||
if not(fs.exists(filePath))then
|
if not(fs.exists(filePath))then
|
||||||
shell.run("pastebin run ESs1mg7P packed true "..filePath) -- this is an alternative to the wget command
|
shell.run("pastebin run ESs1mg7P packed true "..filePath) -- this is an alternative to the wget command
|
||||||
end
|
end
|
||||||
local basalt = require(filePath:gsub(".lua", "")) -- here you can change the variablename in any variablename you want default: basalt
|
local basalt = require(filePath) -- here you can change the variablename in any variablename you want default: basalt
|
||||||
```
|
```
|
||||||
|
|
||||||
## Advanced Installer
|
## Advanced Installer
|
||||||
@@ -18,7 +18,7 @@ This is a visual version, it asks the user if he wants to install basalt.lua (if
|
|||||||

|

|
||||||
```lua
|
```lua
|
||||||
--Basalt configurated installer
|
--Basalt configurated installer
|
||||||
local filePath = "basalt.lua" --here you can change the file path default: basalt.lua
|
local filePath = "basalt" --here you can change the file path default: basalt
|
||||||
if not(fs.exists(filePath))then
|
if not(fs.exists(filePath))then
|
||||||
local w,h = term.getSize()
|
local w,h = term.getSize()
|
||||||
term.clear()
|
term.clear()
|
||||||
@@ -69,6 +69,6 @@ if not(fs.exists(filePath))then
|
|||||||
term.clear()
|
term.clear()
|
||||||
end
|
end
|
||||||
|
|
||||||
local basalt = require(filePath:gsub(".lua", "")) -- here you can change the variablename in any variablename you want default: basalt
|
local basalt = require(filePath) -- here you can change the variablename in any variablename you want default: basalt
|
||||||
------------------------------
|
------------------------------
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user