mertd / shovel-data Goto Github PK
View Code? Open in Web Editor NEWA script that checks out all supported scoop buckets and collects the manifests in one searchable json file for shovel.
License: MIT License
A script that checks out all supported scoop buckets and collects the manifests in one searchable json file for shovel.
License: MIT License
Hi Mertd,
I sucessfully get license field, but i saw on scoop package manifest that is possible to come this way:
"license": {
"identifier": "Freeware",
"url": "http://www.anyburn.com/tutorials/eula.htm"
},
if package comes with example: "license": "LGPL-2.1-or-later", it works, do you know how to parse the sub-values when is required ?
Here my code on shovel-go:
index.SetP(license, "license");
....
func extractManifestContents(manifest *gabs.Container) (string, string, string, string, string) {
var homepage string
var version string
var description string
var github string
var license string
var ok bool
.....
license, ok = manifest.Path("license").Data().(string)
if ok == false {
license = ""
......
return homepage, version, description, license, github
Present in official buckets list. License is 'Unlicense' (the same as Main, Extras, Versions, Java etc.).
Only a subset of keys is needed to enable search; drop the rest to reduce file size.
Has to be done after #8
...instead of just editing the string read from file.
This will allow excluding erroneous manifests with invalid JSON from the generated manifests.json
.
Add a manifest link field to every manifest, as is currently done with manifest name
and bucket
.
This is a prerequisite for mertd/shovel#23
The manifests.json file should be built regularly with scheduled GitHub Actions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.