Advertisement
tommarek_CZE

Untitled

Dec 24th, 2023 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. install = {
  2. title = 'Opus OS',
  3. version = '1.0',
  4. author = 'Kepler, Thomas',
  5. description = [[
  6. Modifikovany operacni system Opus OS, obsahuje zakladni nastroje, hry a internet!, muzete si pridat i aplikace pomoci balicku!
  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 = 2023,
  15. copyrightHolders = 'Kepler and tommarek',
  16. diskspace = 380000,
  17. rebootAfter = true,
  18. gitRepo = 'tommarekCZE/opusm',
  19. gitBranch = 'develop-1.8',
  20. branches = {
  21. { branch = 'develop-1.8', description = 'Stabilni verze 1.8' },
  22. },
  23. preCopy = function(mode)
  24. if mode == 'update' then
  25. fs.delete('sys')
  26. end
  27. end,
  28. steps = {
  29. install = {
  30. 'splash',
  31. 'license',
  32. 'branch',
  33. 'files',
  34. 'review',
  35. 'install',
  36. },
  37. update = {
  38. 'branch',
  39. 'review',
  40. 'install',
  41. },
  42. automatic = {
  43. 'install',
  44. },
  45. uninstall = {
  46. 'review',
  47. 'uninstall',
  48. },
  49. },
  50. }
  51.  
  52. print('Stahuji Balicky...')
  53.  
  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('Selhalo stahovani balicku')
  58. end
  59.  
  60. local contents = h.readAll()
  61. if not contents then
  62. error('Selhalo stahovani balicku')
  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