-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Schema #1
Comments
Actually, since extension management isn't allowed for Chrome apps (ugh), I'm probably going to do something more like this (which can be generalized):
|
Actually, to keep the JSON patching flexible, there should probably be a layer like "set" that sets keys to values (with room for future extensions like "append" and "merge"). Maybe call it "values" or "properties". |
Okay, so here's the new sample schema: sources:
- url: https://path/to/whatever.zip
slice:
- from: subfolder-in-zip/deeper-subfolder #defaults to root
to: different-sublocation #defaults to root
tags: [extension]
patch:
files:
manifest.json:
set: {name: "Example (Development)"}
icon.png:
color: [invert] |
Patch items might have a "don't patch in repack" option. Also, repack is somewhere in the future-planned-features list. |
I'm going to have a layer for the kind of patching, like "json" or "png", and they're going to be items in an array for enforcing order (ie. if you want to do a fulltext patch, and then a JSON patch, and then maybe another fulltext patch). Having each step be an object allows for each step to have patch-operation options placed on it (like "include in repack"). |
Here's what I'm thinking (using YAML syntax and Tabalanche as an example):
The text was updated successfully, but these errors were encountered: