Revert "Make installer independent of OpenOS /bin/wget.lua software"

This reverts commit b68132bd54.
This commit is contained in:
Igor Timofeev 2018-06-07 08:44:25 +03:00
parent b68132bd54
commit 9748f3449d

View File

@ -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