gristlabs / grist-desktop

Desktop Grist, packaged with Electron
Apache License 2.0
154 stars 7 forks source link

manifest.json, plugins on MacOS #34

Closed beddows closed 3 months ago

beddows commented 3 months ago

Where should manifest.json be located on MacOS, when using GRIST_WIDGET_LIST_URL? E.g.: http://192.168.1.2:8484/manifest.json

What url should be used in the manifest for a local plugin? What directory in MacOS is being used for plugins?

beddows commented 3 months ago

Why is it... that every time I post a question on GitHub, I figure it out half an hour later?

You can put manifest.json wherever you like. Using grist-widget, for example, running yarn run dev in your local directory starts a node server on port 8585. So it's GRIST_WIDGET_LIST_URL=http://192.168.1.2:8585/manifest.json.

And if you add a custom widget inside Grist, using widget options you can select the custom widget from the drop-down (from manifest.json) or set the custom url (E.g.: http://localhost:8585/path-in-grist-widget).

Oddly enough, while the custom widget drop-down is populated with widgets, none of them seem to work, I just get a blank widget. But if I use the Custom URL option, it works fine.