# LeksOS repo — upload as-is

Upload every file in this directory to `/srv/leksos-repo/x86_64/` on the
server, so that:

- `https://repo.lekshuesos.online/x86_64/repo.index` — the index `lks --update` fetches
- `https://repo.lekshuesos.online/x86_64/nano-9.2.lks` — matches `File=` in the index
- `https://repo.lekshuesos.online/x86_64/fastfetch-2.66.0-47.lks` — same

`lks` resolves package files as `<repo-url>/<File>`, where `<repo-url>` is
whatever's in `/etc/lks/repos.conf` — that file is set to
`https://repo.lekshuesos.online/x86_64` (arch-specific subpath, matching
the `x86_64/` layout the old Arch-based repo already used), so this
`x86_64/` folder is the one `lks` actually talks to. There's no
auto-discovery of arch subfolders - if you ever add another architecture,
it needs its own repo.index and its own configured repos.conf entry.

## Adding more packages later

1. Build the package tree into a staging dir with `.PKGINFO` at its root
   (see `lks/docs/PACKAGES.md` for the format).
2. `lks --pack <staging-dir> <name>-<version>.lks`
3. Copy the `.lks` file into this `repo/` directory.
4. Add a `[name]` section to `repo.index` (Version/File/Depends/Description).
5. Upload the new `.lks` file and the updated `repo.index`.

## Already tested

Full `lks --update` / `--search` / `--install` cycle was verified against
this exact `repo.index` + package pair via a local `file://` URL before
handoff — the format works, just needs uploading.
