qzind / tray

Browser plugin for sending documents and raw commands to a printer or attached device.
https://qz.io
Other
823 stars 266 forks source link

Add base64 resource embedding into provisioning.json #1271

Closed tresf closed 2 days ago

tresf commented 3 days ago

@lukas-w requested:

One thing that could simplify things is if resource files like installers could be embedded within the provisioning JSON as base64. That way it's just one file always and the protocol between website and build server would not have to change

Due to some limitations with our JSON library, I'm not sure of feasibility, but I'll track it here.

tresf commented 2 days ago

Feasibility is bleak. Jettison doesn't seem to support this natively (converting the base64 to a datastream) meaning that the base64 conversion for larger binary blobs would be very memory intensive. I would consider a drop-in JSON library that can tackle this, but doing so would refactor much of the codebase, so I'll mark this as not-planned for now.