Creación de un repositorio de extensiones estático

To host your own extensions and leverage Blender update system all that is required is a static JSON file on a server, pointing towards download links for the extensions.

JSON

To generate a valid JSON file you can use the command-line tool:

blender --command extension server-generate --repo-dir=/path/to/packages

This creates an index.json listing from all the packages found in the specified location.

See server-generate docs.

The generated JSON is aligned with the API.

Comprobación

To test the generated repository, create a new «Remote» repository from the user preferences:

  • Extensiones -> Repositorios -> [+] -> Agregar repositorio remoto

  • In the URL paste the location of the generated JSON. So the example /path/to/packages would use the:

    • file:///ruta/a/los/paquetes/index.json en Linux/macOS.

    • file:///C:/ruta/a/los/paquetes/index.json en MS-Windows.

    • file://SERVIDOR/share/ruta/a/los/paquetes/index.json recursos compartidos de red en MS-Windows.

    You may wish to use a web browser to navigate to the file-system location and copy that URL into Blender.

HTML

The server-generate command can optionally create a simple website using the --html argument. which can be used to view extensions online, the links can dropped into Blender for installation.

For a sample of the HTML code you can use to list all the extensions in the repository, use the html option when generating the server.

blender --command extension server-generate --repo-dir=/path/to/packages --html

This creates an index.html file with all the extra URLs parameters ready to use.