mirror of
https://github.com/spitkov/ynsrepo.git
synced 2025-01-18 04:24:38 +01:00
No description
.github/workflows | ||
packages | ||
README.md | ||
repo.json |
YNS Package Repository
This repository hosts packages for the YNS Package Manager. The repository structure is automatically maintained using GitHub Actions.
Package Manager
To use these packages, you'll need to install the YNS Package Manager first. The package manager will automatically fetch and manage packages from this repository.
Repository Structure
.
├── repo.json # Main package index
├── packages/ # Directory containing all packages
│ └── package_name/ # Individual package directory
│ ├── VERSION # Package version file
│ ├── install.sh # Installation script
│ ├── update.sh # Update script
│ └── remove.sh # Removal script
Adding a New Package
- Create a new directory under
packages/
with your package name - Add the required files:
VERSION
: Contains the version number (e.g., "1.0", "2.1")install.sh
: Installation scriptupdate.sh
: Update scriptremove.sh
: Removal script
- Push your changes to the main branch
The GitHub Actions workflow will automatically update the repo.json
file with your package information.
Package Scripts
Each package must contain three executable scripts:
install.sh
: Handles package installationupdate.sh
: Handles package updatesremove.sh
: Handles package removal
All scripts should:
- Be executable
- Return 0 on success
- Return non-zero on failure
- Handle errors appropriately