1
-- NOTE: copied from https://pastebin.com/UzGHLbNC
2
install = {
3
title = 'Opus OS',
4
version = '1.0',
5
author = 'Kepler',
6
description = [[
7
A user friendly operating system featuring multitasking, networking, and automation
8
]],
9
license = [[
10
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
12
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.]],
15
copyrightYear = 2018,
16
copyrightHolders = 'Kepler',
17
diskspace = 380000,
18
rebootAfter = true,
19
gitRepo = 'kepler155c/opus',
20
gitBranch = 'develop-1.8',
21
branches = {
22
{ branch = 'develop-1.8', description = '1.8+ Unstable' },
23
{ branch = 'master-1.8', description = '1.8+ Stable' },
24
{ branch = 'master', description = '1.7x Stable' },
25
{ branch = 'develop', description = '1.7x Unstable' },
26
},
27
preCopy = function(mode)
28
if mode == 'update' then
29
fs.delete('sys')
30
end
31
end,
32
steps = {
33
install = {
34
'splash',
35
'license',
36
'branch',
37
'files',
38
'review',
39
'install',
40
},
41
update = {
42
'branch',
43
'review',
44
'install',
45
},
46
automatic = {
47
'install',
48
},
49
uninstall = {
50
'review',
51
'uninstall',
52
},
53
},
54
}
55
56
print('Downloading Installer...')
57
58
local url ='https://raw.githubusercontent.com/kepler155c/opus-installer/master/sys/apps/Installer.lua'
59
local h = _G.http.get(url)
60
if not h then
61
error('Failed to download installer')
62
end
63
64
local contents = h.readAll()
65
if not contents then
66
error('Failed to download installer')
67
end
68
69
local fn, msg = load(contents, 'Installer.lua', nil, _ENV)
70
if not fn then
71
_G.printError(msg)
72
else
73
local args = { ... }
74
fn(args[1])
75
end