View difference between Paste ID: EgiyF8fK and sj4VMVJj
SHOW: | | - or go back to the newest paste.
1
install = {
2
  title = 'Opus OS',
3
  version = '1.0',
4
  author = 'Kepler',
5
  description = [[
6
A user friendly operating system featuring multitasking, networking, and automation
7
]],
8
  license = [[
9
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:
10
11
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
13
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.]],
14
  copyrightYear = 2016,
15
  copyrightHolders = 'Kepler',
16
  diskspace = 370000,
17
  rebootAfter = true,
18
  gitUser = 'kepler155c',
19
  gitRepo = 'opus',
20
  gitBranch = 'master',
21
  steps = {
22
    install = {
23
      'splash',
24
      'license',
25
      'files',
26
      'review',
27
      'install',
28
    },
29
    update = {
30
      'review',
31
      'install', -- must be last
32
    },
33
    automatic = {
34
      'install', -- must be last
35
    },
36
    uninstall = {
37
      'review',
38
      'uninstall', -- must be last
39
    },
40
  },
41
}
42
43
print('Downloading Installer...')
44
45
local h = http.get('http://pastebin.com/raw/598YVLuc')
46
if not h then
47
  error('Failed to download installer')
48
end
49
50
local contents = h.readAll()
51
if not contents then
52
  error('Failed to download installer')
53
end
54
55
local fn, msg = load(contents, 'Installer.lua', nil, getfenv(1))
56
if not fn then
57
  printError(msg)
58
else
59
  local args = { ... }
60
  fn(args[1])
61
end