This commit is contained in:
Igor Timofeev 2017-01-22 08:40:23 +03:00
parent 1310118f0e
commit 2b098cf24e
4 changed files with 3 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -1016,7 +1016,7 @@
icon="IgorTimofeev/OpenComputers/master/Applications/AppMarket/Icon.pic",
createShortcut="dock",
forceDownload=true,
version=1.53,
version=1.54,
resources={
{
name="Localization/Russian.lang",

BIN
Applications/.DS_Store vendored

Binary file not shown.

View File

@ -46,6 +46,7 @@ local typeFilters = {
local localization = table.fromFile("MineOS/Applications/AppMarket.app/Resources/Localization/" .. _G.OSSettings.language .. ".lang")
local appMarketConfigPath = "MineOS/System/AppMarket/"
local pathToApplications = "MineOS/System/OS/Applications.txt"
local pathToNewApplications = appMarketConfigPath .. "NewApplications.txt"
local updateImage = image.load(MineOSCore.paths.icons .. "Update.pic")
local topBarElements = {localization.applications, localization.libraries, localization.wallpapers, localization.other, localization.updates}
local oldApplications, newApplications, currentApps, changes = {}, {}, {}, {}
@ -223,7 +224,6 @@ local function drawMain(refreshData)
end
local function getNewApplications()
local pathToNewApplications = appMarketConfigPath .. "NewApplications.txt"
ecs.getFileFromUrl(oldApplications.GitHubApplicationListURL, pathToNewApplications)
newApplications = table.fromFile(pathToNewApplications)
end
@ -327,6 +327,7 @@ local function updateAll()
changes = {}
oldApplications = newApplications
saveOldApplications()
fs.remove(pathToNewApplications)
require("computer").shutdown(true)
end