Azathothas / Toolpacks

Official (pkgforge-edge) Repo 📦📀 & The Largest Collection of Pre-Compiled (+ UPXed) Linux Static Binaries (incl. Build Scripts) & Package Manager (rust) :: https://github.com/pkgforge/soar
https://bin.pkgforge.dev/
MIT License
151 stars 16 forks source link

No METADATA.json at https://bin.ajam.dev/arm64_v8a_Android/Baseutils/ #20

Closed xplshn closed 6 months ago

Azathothas commented 6 months ago

Currently testing. (It may be available but inaccurate at the time of you seeing)

Further, if I were to generate a tree, which format would you prefer (be easier to parse, for eg, just download this file and extract the dirnames directly)

# rclone tree --dirs-only --fast-list "r2:/bin/"
/
├── aarch64_arm64_Linux
│   └── Baseutils
├── arm64_v8a_Android
│   └── Baseutils
│       └── coreutils
├── x64_Windows
└── x86_64_Linux
    └── Baseutils
/
├── \aarch64_arm64_Linux
│   └── \aarch64_arm64_Linux\Baseutils
├── \arm64_v8a_Android
│   └── \arm64_v8a_Android\Baseutils
│       └── \arm64_v8a_Android\Baseutils\coreutils
├── \x64_Windows
└── \x86_64_Linux
    └── \x86_64_Linux\Baseutils

or if you want to rely only on the single root metadata.json look for those whose size says -1 B

for example:

{
  "Name": "coreutils",
  "Size": "-1 B",
  "ModTime": "2024-05-16T13:35:06.225216100+05:45",
  "Source": "https://bin.ajam.dev/arm64_v8a_Android/Baseutils/coreutils"
}
xplshn commented 6 months ago

BigDL uses the .json at each $ARCH and $ARCH/Baseutils. If the format is different across architectures it makes it difficult because I'd have to do jank such as checking the architecture at run-time.

Azathothas commented 6 months ago

Once again I urge you to only use https://bin.ajam.dev/METADATA.json This file remains immutable and is never overwritten in case any of the other json data are bad/empty/invalid. Only when every other source is validated, the merged METADATA.json is created. It's likely that you experienced https://github.com/Azathothas/Toolpacks/issues/10 because you keep relying on unreliable sources. Also, I am planning to deprecate hysp's metadata entirely. No more description etc in the short term (you may still use it, it's just that I won't be fixing any bugs or maintaining hysp aymore) , but in the long term, I plan to add a better system which would be automatable and not rely on github's api for description etc.

I would still recommend the solution of creating a repo for bigdl bigdl-registry and workout formats on your own as discussed in https://github.com/Azathothas/Toolpacks/issues/18#issuecomment-2109586322

xplshn commented 6 months ago

I would still recommend the solution of creating a repo for bigdl bigdl-registry and workout formats on your own as discussed in https://github.com/Azathothas/Toolpacks/issues/18#issuecomment-2109586322

I don't understand Github Actions at all, if I knew how to make a GH action that runs every a few hours and adds the missing Description/Version/Updated field to METADATA.json that'd be great

EDIT: I just realized; This may be a bug not in my program...

Once again I urge you to only use https://bin.ajam.dev/METADATA.json

Because, I AM using METADATA.json. After reading all of my source code I couldn't find what caused that http request. (In termux I had an error message when trying bigdl saying: "https://bin.ajam.dev/arm64_v8a_Android/Baseutils/METADATA.json 404")

xplshn commented 6 months ago

Now it works fine