mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-09-14 11:06:16 +05:00
Revert "Make installer independent of OpenOS /bin/wget.lua software"
This reverts commit b68132bd54.
This commit is contained in:
parent
b68132bd54
commit
9748f3449d
@ -72,9 +72,14 @@ local function unserializeFile(path)
|
||||
return data
|
||||
end
|
||||
|
||||
local function wget(url, path)
|
||||
fs.makeDirectory(fs.path(path))
|
||||
shell.execute("wget " .. url .. " " .. path .. " -fq")
|
||||
end
|
||||
|
||||
print("Downloading MineOS file list...")
|
||||
local path = "/MineOS/System/Files.cfg"
|
||||
_G.downloadFile(URLs.applicationList, path)
|
||||
wget(URLs.applicationList, path)
|
||||
applicationList = unserializeFile(path)
|
||||
fs.remove(path)
|
||||
|
||||
@ -82,7 +87,7 @@ print(" ")
|
||||
|
||||
for i = 1, #applicationList.preInstall do
|
||||
print("Downloading library \"" .. fs.name(applicationList.preInstall[i].path) .. "\"")
|
||||
_G.downloadFile(applicationList.preInstall[i].url, applicationList.preInstall[i].path)
|
||||
wget(applicationList.preInstall[i].url, applicationList.preInstall[i].path)
|
||||
storeFileVersion(applicationList.preInstall[i])
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user