This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Wilma456's profile picture

Package System preinstaled

Started by Wilma456, 29 June 2016 - 09:33 AM
Wilma456 #1
Posted 29 June 2016 - 11:33 AM
I know, there are package systems like Packman and Appstores like Discover App Store, but there is only a litle hype at the realese of this programs and all people upload there programs. After that, nobody use this any more.

If a package system preinstaled, more people and newbies will use it. Maybe with a GUI like Synaptic for advance computers.

The programs, who are publischt in this forum can be take in a package repositorie, who is default enabled. And people can make there own package repositorie with their own programs (http and modem for server).

Package example

name: mypackage
meta {
author: example
version: 1.0.0
license: MIT
needed {
myapi
}
special {
}
}
content {
  1 {
	 type: local
	name: file1
	{
	  print("Hello World")
	}
   }
2 {
type: http
name: file2
{ example.com }
}
}
The first is the name of the package.
The meta section contains information about the package. needed contains, which package will be needed. They will be automatically installed with the package. The special section is for os maker and contains information, who the normal package manager not needed but there are useful for programmer. For example: If you have app permissions in your OS, this section can contain, what is needed.
The content section contains the programm code. It cann contain more than one file. The name of the file is in the name tag. The type tag says, where the code is. local means, the code is in the package. https means, the code is in the Internet.
Lyqyd #2
Posted 29 June 2016 - 03:56 PM
Packman has actually seen a steady trickle of authors adding their own package repositories to the repository list, and I personally keep my package entries up to date whenever I update any of my software. I like to consider packman to be the quiet, reliable option for a package manager for ComputerCraft.

Dan hasn't, to my knowledge, shown any interest previously in adding a package manager to the Lua files that ship with ComputerCraft, but that doesn't mean it can't/won't happen in the future.
manu_03 #3
Posted 18 July 2016 - 09:28 PM
Like the idea, but I have a question. How would people add their packages? I think about a web where people submit them and some staff check if it's suitable to have its own package.
H4X0RZ #4
Posted 18 July 2016 - 10:14 PM
Like the idea, but I have a question. How would people add their packages? I think about a web where people submit them and some staff check if it's suitable to have its own package.

Or do it like "aptitude". The package manager used by Debian based distros (AFAIK). It has official sources for packages, but you can, "easily", add new sources from where you can install software.