No description
Find a file
github-actions[bot] 5e6d2eedf0 Update repo.json
2025-01-05 13:31:44 +00:00
.github/workflows Update GitHub Actions workflow with PAT authentication 2025-01-05 13:39:49 +01:00
packages/ayva remove sample files add ayva 2025-01-05 14:31:32 +01:00
README.md Initial commit: Basic repository structure with sample calc package 2025-01-05 13:35:56 +01:00
repo.json Update repo.json 2025-01-05 13:31:44 +00:00

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

  1. Create a new directory under packages/ with your package name
  2. Add the required files:
    • VERSION: Contains the version number (e.g., "1.0", "2.1")
    • install.sh: Installation script
    • update.sh: Update script
    • remove.sh: Removal script
  3. 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 installation
  • update.sh: Handles package updates
  • remove.sh: Handles package removal

All scripts should:

  • Be executable
  • Return 0 on success
  • Return non-zero on failure
  • Handle errors appropriately