You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve spent the last night on preparing compiled binary executable packages of svgo for macOS and Windows which can be run without Nodejs installed. The result is at:
I used pkg to prepare the distributables. pkg choked on two things:
some aspects of coa.js (so I ended up not using it but just hardcoding some parameters),
the dynamic loading of plugins (the require('../../plugins/' + name) thing), so I ended up hardcoding the list of plugins and using portions of the rejected PR 614 by @joeldenning.
Also: I don’t know shit about JS (really) and about Node and about packaging, so I ended up with a very hacky Makefile which hacks it all together. :) But it works!
I’d still prefer if svgo plugin loading was rewritten upstream in a way that doesn’t make pkg (and Jspm and possibly other environments) choke. The current method is not nice.
(I also briefly thought on taking on #411 but realized that I’m far too slow with writing JS. But anyone else is most welcome to tackle that one! :) ).
I saw a reference here too #777 (comment) but no answer, some official member could clarify here if there's interest to release standalone executables.
Hi all,
I’ve spent the last night on preparing compiled binary executable packages of svgo for macOS and Windows which can be run without Nodejs installed. The result is at:
I used
pkg
to prepare the distributables.pkg
choked on two things:coa.js
(so I ended up not using it but just hardcoding some parameters),require('../../plugins/' + name)
thing), so I ended up hardcoding the list of plugins and using portions of the rejected PR 614 by @joeldenning.Also: I don’t know shit about JS (really) and about Node and about packaging, so I ended up with a very hacky
Makefile
which hacks it all together. :) But it works!I’d still prefer if svgo plugin loading was rewritten upstream in a way that doesn’t make
pkg
(andJspm
and possibly other environments) choke. The current method is not nice.Patches, pull requests or comments on https://github.com/twardoch/svgop are most welcome.
The text was updated successfully, but these errors were encountered: