From 78b5017294501016146380d28b5bc4fca27de32d Mon Sep 17 00:00:00 2001 From: Jeremy Wentworth Date: Sat, 2 Dec 2017 00:02:03 -0500 Subject: [PATCH] changed schema to allow multiple zips (json updates are a WIP) --- README.md | 39 ++++++++++++++++++++----------- plugins/AmalgamatedHarmonics.json | 19 +++++++++++---- 2 files changed, 39 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 56b20ce3..a9e6b9aa 100644 --- a/README.md +++ b/README.md @@ -14,17 +14,28 @@ Filename should be `YourSlug.json`. ```json { - "slug": "AudibleInstruments", - "name": "Audible Instruments", - "license": "BSD 3-clause", - "version": "0.5.0", - "homepage": "https://vcvrack.com/", - "manual": "https://vcvrack.com/manual/AudibleInstruments.html", - "source": "https://github.com/VCVRack/AudibleInstruments", - "download": "https://example.com/AudibleInstruments-0.5.0.zip", - "productId": "1234567890", - "arch": ["win", "lin", "mac"], - "sha256": "5993dbe15af246092678e00897dc7a4a1e2dabc494b83412fe31200d5bb58305", + "slug": "AudibleInstruments", + "name": "Audible Instruments", + "license": "BSD 3-clause", + "version": "0.5.0", + "homepage": "https://vcvrack.com/", + "manual": "https://vcvrack.com/manual/AudibleInstruments.html", + "source": "https://github.com/VCVRack/AudibleInstruments", + "productId": "1234567890", + "arch": { + "win": { + "download": "https://example.com/AudibleInstruments-0.5.0-win.zip", + "sha256": "9372ce3f8ef42d7e874beda36f7c051b3d7de9c904e259a5fc9dba8dc664bf65" + }, + "lin": { + "download": "https://example.com/AudibleInstruments-0.5.0-lin.zip", + "sha256": "238145156cc4e11b3ca6d750df38ca2daf3e09648d9c7db5f23e9518c1ccf5dc" + }, + "mac": { + "download": "https://example.com/AudibleInstruments-0.5.0-mac.zip", + "sha256": "c19fcdfd07dc6184ce30953bf9adb2b4a77d20ef66d2b1c6a6024c2ca4ff505b" + } + } } ``` @@ -39,7 +50,7 @@ Keys with * are required. - **homepage**: URL of the landing page of your plugin. Omit if redundant with the source URL. - **manual**: URL of the manual of your plugin. HTML, PDF, or GitHub readme/wiki are fine. - **source**: URL of the source code landing page. -- **download**: Direct URL to the compiled binary ZIP. All supported architectures must be merged into one ZIP file. Must contain a single folder equal to the name of the plugin's slug. GitHub releases is a good choice for open-source plugins. - **productId**: VCV store ID for commercial plugins. -- **arch**: List of supported architectures. Defaults to `["win", "mac", "lin"]` if omitted. -- **sha256**: Hex SHA256 string of the binary ZIP file for verifying downloads. Use `sha256sum [FILE]` or `sha256 [FILE]`. +- **arch**: Mapping of supported architectures to downloads. + - **download**: Direct URL to the compiled binary ZIP. If supported architectures are merged into one ZIP file, you can copy the same link into each of the architecture sections. Each zip must contain a single folder equal to the name of the plugin's slug. GitHub releases is a good choice for open-source plugins. + - **sha256**: Hex SHA256 string of the binary ZIP file for verifying downloads. Use `sha256sum [FILE]` or `sha256 [FILE]` or https://www.virustotal.com diff --git a/plugins/AmalgamatedHarmonics.json b/plugins/AmalgamatedHarmonics.json index 6e7c85f3..f3623d75 100644 --- a/plugins/AmalgamatedHarmonics.json +++ b/plugins/AmalgamatedHarmonics.json @@ -2,11 +2,20 @@ "slug": "AmalgamatedHarmonics", "name": "Amalgamated Harmonics", "version": "0.5.3", - "source": "https://github.com/jhoar/AmalgamatedHarmonics/tree/v0.5.3", - "download": "https://github.com/jhoar/AmalgamatedHarmonics/releases/tag/v0.5.3", + "manual": "https://github.com/jhoar/AmalgamatedHarmonics/blob/master/README.md", + "source": "https://github.com/jhoar/AmalgamatedHarmonics", "arch": [ - "win", - "mac", - "lin" + "win":{ + "download": "https://github.com/jhoar/AmalgamatedHarmonics/releases/download/v0.5.3/AmalgamatedHarmonics-0.5.3-win.zip", + "sh256": "9372ce3f8ef42d7e874beda36f7c051b3d7de9c904e259a5fc9dba8dc664bf65" + }, + "mac":{ + "download": "https://github.com/jhoar/AmalgamatedHarmonics/releases/download/v0.5.3/AmalgamatedHarmonics-0.5.3-mac.zip", + "sh256": "238145156cc4e11b3ca6d750df38ca2daf3e09648d9c7db5f23e9518c1ccf5dc" + }, + "lin":{ + "download": "https://github.com/jhoar/AmalgamatedHarmonics/releases/download/v0.5.3/AmalgamatedHarmonics-0.5.3-lin.zip", + "sh256": "c19fcdfd07dc6184ce30953bf9adb2b4a77d20ef66d2b1c6a6024c2ca4ff505b" + } ] } \ No newline at end of file