Skip to content

Commit 1d2be10

Browse files
committed
♻️ Synced dbin 📦 <-- Update README.md ⌚
1 parent 5bb825d commit 1d2be10

File tree

4 files changed

+54
-8
lines changed

4 files changed

+54
-8
lines changed

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,27 +202,37 @@ A schema of the metadata format can be found here [/misc/cmd/dbinRepoIndexGenera
202202

203203
- [PkgForge's repos](https://docs.pkgforge.dev/repositories): External repository with __Portable__ programs that are _truly static, or otherwise self-contained_ using a wrapper format
204204
- Pkgcache: 203 <!-- PKGCACHE_COUNT -->
205+
- Detailed repo info: https://docs.pkgforge.dev/repositories/pkgcache
206+
- Package request doc: https://docs.pkgforge.dev/repositories/pkgcache/package-request
205207
- Bincache: 3921 <!-- BINCACHE_COUNT -->
206-
- Note however that pkgforge also has dynamic (unportable) programs/packages (that only run on Debian & derivatives), `dbin` filters these out, leaving behind only the static/portable programs.
208+
- Detailed repo info: https://docs.pkgforge.dev/repositories/bincache
209+
- Package request doc: https://docs.pkgforge.dev/repositories/bincache/package-request
210+
- Note however that pkgforge also has dynamic (unportable) programs/packages (that only run on Debian & derivatives), `dbin` filters these out, leaving behind only the static/portable programs. These are a minority of the programs included.
207211
- [AppBundleHub](https://github.com/xplshn/AppBundleHUB): Only self-hosted repository: __Portable__ programs in .AppBundle format
208212
- 27 <!-- APPBUNDLEHUB_COUNT -->
209-
- URLs
210-
- Lite (default): `https://d.xplshn.com.ar/misc/cmd/1.6/amd64_linux.lite.cbor.zst`: .lite version doesn't have include possible field of `dbin info`, only those which are relevant to the user & are used by `dbin`
211-
- Complete: `https://d.xplshn.com.ar/misc/cmd/1.6/amd64_linux.cbor.zst`: opposite of .lite, contains all fields of the DbinItem type defined in the repository generators at [misc/cmd/dbinRepoIndexGenerators/*/generator.go](misc/cmd/dbinRepoIndexGenerators)
212-
- Web: `https://d.xplshn.com.ar/misc/cmd/1.6/amd64_linux.web.cbor.zst`: so that websites can list the packages in these repositories, a .web endpoint is also provided for all of them. This version includes the URL to the program's icon file, as well as screenshots, family, etc. This data is not used in `dbin`, but someone may want it, so it was put in a separate file
213+
214+
##### Endpoints
215+
216+
- Lite (recommended): `https://d.xplshn.com.ar/misc/cmd/1.6/amd64_linux.lite.cbor.zst`: .lite version doesn't include all possible fields of `dbin info`, only those which are relevant to the user & are used by `dbin`. Namely: `{Web Manifest, Sha256, Screenshots, IconURL, Provides, AppsStreamID, LongDescription}`
217+
- NLite (default): `https://d.xplshn.com.ar/misc/cmd/1.6/amd64_linux.nlite.cbor.zst`: .nlite is like .lite, but includes all the fields that upstream forces me to. Namely: "Web Manifest"
218+
- Complete: `https://d.xplshn.com.ar/misc/cmd/1.6/amd64_linux.cbor.zst`: opposite of .lite, contains all fields of the DbinItem type defined in the repository generators at [misc/cmd/dbinRepoIndexGenerators/*/generator.go](misc/cmd/dbinRepoIndexGenerators)
219+
220+
It makes no difference which endpoint you choose. `.lite` will be the best option for embedded hardware, unmarshalling the Complete endpoint is slow on embedded hardware, from experience, even for the MT7622 router.
221+
222+
NOTE: If you're using an Opteron Venus or similar ancient CPU, it may be better to use the uncompressed .lite endpoint, as the bottleneck is your CPU, not network
213223

214224
## Optional repos
215-
- [AM repo](https://github.com/ivan-hc/am): External repository with not-so portable programs that work only on glibc-based distros.
225+
- [AM repo](https://docs.pkgforge.dev/repositories/external/am): External repository with not-so portable programs that work only on glibc-based distros. The packages come from the [AM](https://github.com/ivan-hc/AM) package manager
216226
- 2302 <!-- AM_COUNT -->
217227
- NOTE: Scrapped by pkgforge. Adapted to `dbin` format at `dbin-metadata`
218228
- URL: `https://d.xplshn.com.ar/misc/cmd/1.6/AM_amd64_linux.lite.cbor.zst`
219229

220-
- [PkgForge Go repo](https://github.com/pkgforge-go): External repository with __Portable__ _truly static_ programs, they are the result of scrapping various sources with Go repositories and compilng them. You can read more about the process at the docs of the upstream project: https://docs.pkgforge.dev/repositories/external/pkgforge-go
230+
- [PkgForge Go repo](https://docs.pkgforge.dev/repositories/external/go): External repository with __Portable__ _truly static_ programs, they are the result of scrapping various sources with Go repositories and compilng them. You can read more about the process at the docs of the upstream project: https://docs.pkgforge.dev/repositories/external/pkgforge-go
221231
- The binaries in this repo are Go projects that have been fetched, filtered and built automagically
222232
- 10531 <!-- GO_COUNT -->
223233
- URL: `https://d.xplshn.com.ar/misc/cmd/1.6/pkgforge-go_amd64_linux.lite.cbor.zst`
224234

225-
- [PkgForge Cargo repo](https://github.com/pkgforge-cargo):
235+
- [PkgForge Cargo repo](https://docs.pkgforge.dev/repositories/external/pkgforge-cargo):
226236
- The binaries in this repo are Rust projects that have been fetched, filtered and built automagically
227237
- 4583 <!-- CARGO_COUNT -->
228238
- URL: `https://d.xplshn.com.ar/misc/cmd/1.6/pkgforge-cargo_amd64_linux.lite.cbor.zst`

misc/cmd/dbinRepoIndexGenerators/1.4/generator.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,18 @@ func saveMetadata(filename string, metadata DbinMetadata) error {
464464
}
465465
}
466466
saveAll(filename+".web", webMetadata)
467+
// "nlite" version
468+
for _, items := range metadata {
469+
for i := range items {
470+
items[i].Icon = ""
471+
items[i].Provides = ""
472+
items[i].Shasum = ""
473+
items[i].AppstreamId = ""
474+
items[i].LongDescription = ""
475+
items[i].Screenshots = []string{}
476+
}
477+
}
478+
saveAll(filename+".nlite", metadata)
467479
// "lite" version
468480
for _, items := range metadata {
469481
for i := range items {

misc/cmd/dbinRepoIndexGenerators/1.5/generator.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,18 @@ func saveMetadata(filename string, metadata DbinMetadata) error {
464464
}
465465
}
466466
saveAll(filename+".web", webMetadata)
467+
// "nlite" version
468+
for _, items := range metadata {
469+
for i := range items {
470+
items[i].Icon = ""
471+
items[i].Provides = ""
472+
items[i].Shasum = ""
473+
items[i].AppstreamId = ""
474+
items[i].LongDescription = ""
475+
items[i].Screenshots = []string{}
476+
}
477+
}
478+
saveAll(filename+".nlite", metadata)
467479
// "lite" version
468480
for _, items := range metadata {
469481
for i := range items {

misc/cmd/dbinRepoIndexGenerators/1.6/generator.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,18 @@ func saveMetadata(filename string, metadata DbinMetadata) error {
464464
}
465465
}
466466
saveAll(filename+".web", webMetadata)
467+
// "nlite" version
468+
for _, items := range metadata {
469+
for i := range items {
470+
items[i].Icon = ""
471+
items[i].Provides = ""
472+
items[i].Shasum = ""
473+
items[i].AppstreamId = ""
474+
items[i].LongDescription = ""
475+
items[i].Screenshots = []string{}
476+
}
477+
}
478+
saveAll(filename+".nlite", metadata)
467479
// "lite" version
468480
for _, items := range metadata {
469481
for i := range items {

0 commit comments

Comments
 (0)