- xrayctl Go daemon: share-link parser (vless/vmess/trojan/ss + reality/xhttp/ws/grpc), UCI->model, config generator, sub fetch+fingerprint+reconcile, apply/nft/routing, status/explain; go build/vet/test green - fix: routing rule with no matcher -> inject tcp,udp catch-all (xray 'no effective fields'); regression test added; 'Configuration OK' on real xray 25.1.30 - luci-app-shater: JS views (overview/nodes/subs/rules/settings) + ucode ubus backend + acl (verified) - shater-core: procd init + hotplug + sysctl + inert default config (sh -n clean) - CI: gh-action-sdk matrix (x86_64/aarch64_cortex-a53/+2), signed feed; BUILD.md; dist/ - examples: full+minimal /etc/config/xray, share-link fixtures - CONTRACT.md: UCI schema + xrayctl CLI/ubus interface
shater feed (dist/)
Helper + layout for publishing the three shater packages (xrayctl,
luci-app-shater, shater-core) as a signed opkg feed that routers add
once and then install/upgrade from.
make-feed.sh— (re)builds thePackages/Packages.gzopkg index for one arch and, given the usign secret key, signs it (Packages.sig).
The CI workflow (.github/workflows/build.yml) already builds a signed index
per arch with INDEX:1 + KEY_BUILD. Use make-feed.sh when you build locally
with the SDK, or to re-index a directory you assembled by hand.
1. Keys (once, ever)
usign -G -c "shater feed" -s secret.key -p public.key
usign -F -p public.key # -> key-id, e.g. 7ffc7517c4cc0c56
- Store
secret.keycontents as the CI secretKEY_BUILD. Never rotate it casually: a new key invalidates trust on every router that installed the oldpublic.key. public.keyships next to the feed so clients can trust it. Its router-side filename must equal the key-id printed byusign -F.
2. Build the index locally (optional)
# after an SDK build, per arch:
dist/make-feed.sh bin/packages/aarch64_cortex-a53/shater secret.key
3. Publish layout
Serve one directory per architecture, each containing the .ipk files plus
the signed index. Both GitHub Pages / Gitea Pages and a Release asset tree work.
<feed-root>/
├── public.key # the usign pubkey (also copy to key-id name)
├── x86_64/
│ ├── xrayctl_*.ipk
│ ├── luci-app-shater_*.ipk
│ ├── shater-core_*.ipk
│ ├── Packages
│ ├── Packages.gz
│ └── Packages.sig
├── aarch64_cortex-a53/
│ └── ... (same set)
├── mipsel_24kc/
│ └── ...
└── arm_cortex-a7_neon-vfpv4/
└── ...
The client feed URL points at the per-arch subdirectory (the one holding
Packages.gz).
- Gitea/GitHub Pages: push this tree to the Pages branch → stable URL like
https://omar.git.qomar.pw/shater/<arch>(GitHub Pages:https://<user>.github.io/shater/<arch>). - Release assets: the workflow attaches the per-arch files to a
v*release; the browse URL of the release's arch folder is the feed URL.
4. Client install (one time, on the router)
opkg (OpenWrt ≤ 24.10 — what the 24.10.4 SDK targets):
ARCH=$(. /etc/openwrt_release; echo "$DISTRIB_ARCH") # e.g. aarch64_cortex-a53
FEED=https://omar.git.qomar.pw/shater # <- your feed root
# 1) trust the key (filename MUST equal the usign key-id, e.g. 7ffc7517c4cc0c56)
wget -O /tmp/public.key "$FEED/public.key"
mv /tmp/public.key "/etc/opkg/keys/$(usign -F -p /tmp/public.key)" # or: opkg-key add /tmp/public.key
# 2) add the feed (per-arch dir)
echo "src/gz shater $FEED/$ARCH" >> /etc/opkg/customfeeds.conf
# 3) install (dependency order is resolved by opkg; xray-core comes from the router's own feed)
opkg update
opkg install xrayctl shater-core luci-app-shater
One-liner (paste on the router):
ARCH=$(. /etc/openwrt_release; echo "$DISTRIB_ARCH"); FEED=https://omar.git.qomar.pw/shater; wget -O /tmp/k "$FEED/public.key" && mv /tmp/k "/etc/opkg/keys/$(usign -F -p /tmp/k)" && echo "src/gz shater $FEED/$ARCH" >> /etc/opkg/customfeeds.conf && opkg update && opkg install xrayctl shater-core luci-app-shater
5. Upgrades
opkg update && opkg upgrade xrayctl luci-app-shater shater-core
Only ever upgrade our own leaf packages, not base system packages. A "check for
update" comparison (feed Version vs opkg status) only works if every rebuild
bumps PKG_RELEASE/PKG_VERSION in each package Makefile.
apk note (OpenWrt ≥ 25.12): if you ever target a 25.12 SDK the format changes to
.apk+packages.adb, signing uses an EC key (PRIVATE_KEYin CI,/etc/apk/keys/*.pemon the router) and the client usesapk add/apk upgradewith/etc/apk/repositories.d/*.list. The 24.10.4 pin in this repo keeps everything on opkg.