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

Package downloader

Started by Elrond1369, 10 January 2013 - 08:10 AM
Elrond1369 #1
Posted 10 January 2013 - 09:10 AM
Package Downloader
This terminal utility makes it easy to download programs from Github. You can download a single file or download a installer that will download and install all other files. It can also get a list of know sources, welcome message containing programs available from each source and a readme for each package.

click here to get package downloader

How to setup your own Github to work with package downloader
SpoilerNew repository for software
1. create a repository with Initialize this repository with a README option selected
2. Edit README.md to include a description and any information the user might need to use the software
notice: if your software is a single file then make sure to make the file name and repository name the same and skip to step 8
3. Create a new file name it packageInstall
4. Add all makeDir's at the top so the directories are created before the other files are downloaded
5. Add shell.run("package", "download", "file_name") for each file that will be downloaded
6. Add any additional code after, then commit.
8. Optional you can make a file named LICENCE.md which when found will ask the person installing the software to aggree to the licence.

Creating welcome message
7. Create a new repository named welcome with Initialize this repository with a README option selected
8. Edit README.md to include a welcome message and a list of software available from your source
notice: make sure the software names on the welcome message match the names of their repository.
If you have a github setup to work with Package Downloader please leave a comment with your username so i can add you to the source list
Eric #2
Posted 10 January 2013 - 09:17 AM
Why rely on the package maintainer to write an installer? You can get github repositories without any extra work!
Elrond1369 #3
Posted 10 January 2013 - 09:24 AM
Why rely on the package maintainer to write an installer? You can get github repositories without any extra work!
My downloader has an option to run a predefined installer plus you can have the PackageInstaller set to shell.run the original installer so you don't have to modify any original files
Eric #4
Posted 10 January 2013 - 09:27 AM
plus you can have the PackageInstaller set to shell.run the original installer so you don't have to modify any original files
No idea what you mean by that - what files would need to be modified, and why does your script stop that?
Elrond1369 #5
Posted 10 January 2013 - 09:32 AM
plus you can have the PackageInstaller set to shell.run the original installer so you don't have to modify any original files
No idea what you mean by that - what files would need to be modified, and why does your script stop that?
You would have to add shell.run("package", "download", "file_name") to the original installer which would screw it up for people who would not want to use the package downloader to install the software