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

OCM - OpenOS packge manager for community-driven development

Recommended Posts

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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