0.1.1 • Published 3 years ago

ocu v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

OCU Package Manager

OpenOS 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