Advertisement
Ranger15

op installer

Jul 30th, 2019
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.58 KB | None | 0 0
  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, sub license, 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 MERCHANT-ABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. 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 = 2018,
  15.   copyrightHolders = 'Kepler',
  16.   diskspace = 380000,
  17.   rebootAfter = true,
  18.   gitRepo = 'kepler155c/opus',
  19.   gitBranch = 'develop-1.8',
  20.   branches = {
  21.     { branch = 'develop-1.8', description = '1.8+ Unstable' },
  22.     { branch = 'master-1.8',  description = '1.8+ Stable'   },
  23.     { branch = 'master',      description = '1.7x Stable'   },
  24.     { branch = 'develop',     description = '1.7x Unstable' },
  25.   },
  26.   steps = {
  27.     install = {
  28.       'splash',
  29.       'license',
  30.       'branch',
  31.       'files',
  32.       'review',
  33.       'install',
  34.     },
  35.     update = {
  36.       'branch',
  37.       'review',
  38.       'install',
  39.     },
  40.     automatic = {
  41.       'install',
  42.     },
  43.     uninstall = {
  44.       'review',
  45.       'uninstall',
  46.     },
  47.   },
  48. }
  49.  
  50. print('Downloading Installer...')
  51.  
  52. -- local url ='https://github.com/rangerdude/opus/blob/master-1.8/sys/apps/Installer.lua'
  53. -- local url ='https://rangerdude.com/Installer.lua'
  54. local url ='https://raw.githubusercontent.com/kepler155c/opus-installer/master/sys/apps/Installer.lua'
  55. local h = _G.http.get(url)
  56. if not h then
  57.   error('Failed to download installer')
  58. end
  59.  
  60. local contents = h.readAll()
  61. if not contents then
  62.   error('Failed to download installer')
  63. end
  64.  
  65. local fn, msg = load(contents, 'Installer.lua', nil, _ENV)
  66. if not fn then
  67.   _G.printError(msg)
  68. else
  69.   local args = { ... }
  70.   fn(args[1])
  71. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement