muon icon indicating copy to clipboard operation
muon copied to clipboard

Find a better solution for included libraries

Open ImVexed opened this issue 6 years ago • 1 comments

Currently, Ultralight libraries are versioned inside of ultralight/libs and are used to resolve symbols during the linking phase (ex)

This is less than ideal since the folder is ~100MB to download with most of that data likely being inapplicable to the users OS.

I think a path forward would be to explore solutions other projects employ to version binary dependencies while not storing them in git, as well as discriminating based on the operating system to only download relevant dependencies (caveat being GOOS changing).

ImVexed avatar Oct 08 '19 18:10 ImVexed

Give some ideas, for muon, just add a function that let user can set dynamic library path on their own, leave git clean.

As user: For deploying, CI pipelines download and copy binaries to specified path, usually the same as main application directory. For debuging, load library from diffrent paths depending on GOOS, GOARCH, and add binary libraries to .gitignore.

Maybe add a commad line tool to help downloading binary libraries to init project.

unlinking avatar Dec 11 '19 03:12 unlinking