1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-12 19:38:05 +00:00

auto upgrade packages on base opus update - github actions wip

This commit is contained in:
kepler155c@gmail.com
2020-04-30 18:51:36 -06:00
parent e116caf16e
commit 287adb1235
13 changed files with 77 additions and 47 deletions

View File

@@ -17,7 +17,7 @@ local page = UI.Page {
UI:quit()
end
return UI.FileSelect.eventHandler(self, event)
return UI.Page.eventHandler(self, event)
end,
}

View File

@@ -16,9 +16,8 @@ local function makeSandbox()
end
local function Syntax(msg)
_G.printError(msg)
print('\nSyntax: Package list | install [name] ... | update [name] | uninstall [name]')
error(0)
print('Syntax: package list | install [name] ... | update [name] | updateall | uninstall [name]\n')
error(msg)
end
local function progress(max)
@@ -76,6 +75,11 @@ local function install(name, isUpdate, ignoreDeps)
local packageDir = fs.combine('packages', name)
local list = Git.list(manifest.repository)
-- clear out contents before install/update
-- TODO: figure out whether to run
-- install/uninstall for the package
fs.delete(packageDir)
local showProgress = progress(Util.size(list))
local getList = { }
@@ -151,7 +155,7 @@ if action == 'uninstall' then
runScript(manifest.uninstall)
local packageDir = fs.combine('packages', name)
fs.delete(fs.resolve(packageDir))
fs.delete(packageDir)
print('removed: ' .. packageDir)
return
end

View File

@@ -12,7 +12,7 @@ for k,v in pairs(colors) do
end
local allSettings = { }
for k,v in pairs(UI.colors) do
for k,v in pairs(UI.theme.colors) do
allSettings[k] = { name = k, value = v }
end