mirror of
https://github.com/fathyb/carbonyl.git
synced 2024-09-11 02:45:31 +03:00
993 B
993 B
html2svg
Convert HTML and <canvas>
to SVG using Chromium.
Usage
$ docker run fathyb/html2svg https://google.com > google.svg
Development
- Building Chromium for ARM on Linux or Windows is not officially supported, cross-compile from x64 instead.
Docker
$ docker buildx build . --platform linux/arm64,linux/amd64
Local
- Fetch dependencies:
$ yarn
- Clone Electron.js and Chromium using
gclient
:$ yarn gclient
- Configure the build system using
gn
using one of these commands:# for local developement $ yarn gn testing # or for releasing $ yarn gn release # add --ide=xcode if you'd like to generate an Xcode project on macOS $ yarn gn release --ide=xcode
- Build using
ninja
using one of these commands:# make a testing build $ yarn ninja testing # make a release build $ yarn ninja release