Closed davidquintana closed 1 year ago
Currently on mobile but I think you need to delete the node_modules
folder and rerun yarn ninja release
. At the end, you can run yarn && yarn tsc -b .
to generate JS files.
If you're getting an Xcode build error during the middle of the build do the following to download the latest recommended Xcode version: yarn && yarn e load-xcode && rm -rf node_modules
.
For checking out the code and patching it you'll need to do yarn gclient --revision "src/electron@cb22573c3e76e09df9fbad36dc372080c04d349e" && scripts/patch.sh
.
If scripts/patch.sh
fails you'll have to reset the fork repo and re-apply:
(cd electron/src && git checkout .) && (cd electron/src/third_party/skia/ && git checkout .) && scripts/patch.sh
Sorry it's pretty bumpy, I'm hoping to make everything smoother in the following days :)
If you have a Linux machine I greatly recommend the Docker steps to generate binaries, it should be pretty portable and write the files in a mounted directory!
Thank you for the suggestions. I'm mainly trying to get Mac binaries, I just switching to trying Linux (without Docker) to see if I could shed some light on what was going wrong. I'm still trying with your suggestions (slow Mac), but I'll update with results.
Ok, I got binaries on MacOS, though it takes my old Mac 10 hours to compile. :)
Your suggestions of deleting node_modules and checking out the code and patching worked. I then manually constructed the /app
directory and modified the html2svg.cli.js file to reflect the Mac binary.
Thank you!
@davidquintana I am also struggling to get macOS binaries.
Would you mind sharing how you did it?
Are there any changes in the /app/ directory that I can't copy from the dockerfile?
What changes did you make to html2svg.cli.ts? (I'm very comfortable in JS but I've never used typescript before)
I've tried building locally (i.e. not using Docker) on both MacOS 12.6.1 and Ubuntu 22.04 and it fails on both during
yarn ninja release
:MacOS 12
Ubuntu 22.04
If anyone can point to a resource where I can learn about building Chromium it would be greatly appreciated. I believe I've followed all the instructions on the Chromium site regarding depot_tools and setting up the dev environment, but obviously I'm missing something. :) Thanks.