Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

0x77dev

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by 0x77dev

  1. OCU Package Manager

    Open Computers minecraft mod package manager for community driven development

    Demo

    Demo

    Installing

    wget -f https://raw.githubusercontent.com/0x77dev/ocu/dist/get.lua /tmp/ocu-get && cd /tmp && ocu-get

    paste following into OpenOS Terminal

    Example

    ocu install 0x77dev/ocu-example@master

    Updating

    ocu update

    Creating own package

    ocu will execute install.lua file at repo root, and provides toolchain called ocu-lib

    Example install.lua

    local ____ocu_2Dlib = require("ocu-lib")
    local getGitHubFileUrl = ____ocu_2Dlib.getGitHubFileUrl
    local getFiles = ____ocu_2Dlib.getFiles
    
    local files = {
        ["/bin/ocu-example.lua"] = getGitHubFileUrl(nil, "ocu-example.lua", "master", "0x77dev/ocu-example")
    }
    
    print("OCU-Example installer")
    
    getFiles(nil, files)

    Example repo

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.