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

[WIP] ccpkg - a package manager for Computercraft

Started by leftshiftadri, 21 December 2013 - 07:32 AM
leftshiftadri #1
Posted 21 December 2013 - 08:32 AM
I am currently working on a package manager for computercraft. The goal is to make something that works similar to apt-get on linux systems.
You basically type "ccpkg install packagename", and it downloads, installs, and updates the package (and other packages it depends on).
It uses a Server built with PHP.
Currently, it is still verrry work-in-progress, I don't know if i will ever really release it. If I would, I'd need a few people to look over the PHP i wrote to see if everything is properly escaped and stuff.
I am also thinking about how the packages can be published. (Login via cc/web interface/email me the files? I don't know yet…)
Well, I will post screenshots and stuff as soon as there is anything to see…

leftshift
Edited on 21 December 2013 - 07:33 AM
biggest yikes #2
Posted 21 December 2013 - 12:37 PM
Can you add the current code if you have any? B)/>
leftshiftadri #3
Posted 21 December 2013 - 01:28 PM
This is the lua code I've written so far:
http://pastebin.com/MnPUbbzg
Downloading it wouldn't make much sense though, because I am currently only using a local server and it will just give you an error.
Also, I will change the way the communication works so far. The way I'm doing it right now is kind of over complicated.
Edit: Also, all it's doing right now is downloading the files.
Edited on 21 December 2013 - 12:29 PM
awsmazinggenius #4
Posted 21 December 2013 - 02:44 PM
Aren't there already CC packagers, CC App Stores (there is one in awsmazingOS), the Pastebin program and cc-get?
Magik6k #5
Posted 21 December 2013 - 04:19 PM
Also Mine CCPT, About Publishing - I'm currently working on a Public repositories(like PPA in Ubuntu), this method seems to be the best one. Anyways I'd like to see your implementation workind!
leftshiftadri #6
Posted 21 December 2013 - 04:26 PM
I didn't know about cc-get, but well, i'm kind of doing something similar.
As I said, I don't know if I am even going to release it…
awsmazinggenius #7
Posted 21 December 2013 - 05:48 PM
For my in-development awsmazingOS App Store (and the awsmazingTunes music store) I use a public GitHub repository to store all the code, and a file in that repository to tell the application how to load all the content into the store.
leftshiftadri #8
Posted 22 December 2013 - 04:57 AM
Yup, I am also using something like instruction file(s) alongside with the program files.
I am also planning to make an in game packager and uploader, but I'm not quite sure about how I want to do the authentication. Also, i'm not quite sure about hosting… (I'm currently just running a local server)
Edited on 22 December 2013 - 03:58 AM
leftshiftadri #9
Posted 22 December 2013 - 08:10 AM
@Magik6k Wow yours looks impressive, idk if I can keep up with that… ;)/>
Edited on 22 December 2013 - 09:45 AM
Imque #10
Posted 23 December 2013 - 09:13 AM
It seems well, very insecure. Once a release is made, I will attempt to exploit the server and report my findings.