overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
132 stars 47 forks source link

Add a way to get VCPKG path and hash ID #813

Closed daleglass closed 4 months ago

daleglass commented 4 months ago

This makes a simple change that aids in packaging, Docker container creation and similar:

$ python ./prebuild.py --get-vcpkg-id --build-root . --quiet
77b4e5f4

$python ./prebuild.py --get-vcpkg-path --build-root . --quiet
/home/dale/overte-files/vcpkg/77b4e5f4

The --build-root . is a requirement of the previously existing code. The value used doesn't matter for --get-vcpkg-id and --get-vcpkg-path.

A few status messages were commented out to make this more usable in a script. If they're wanted we could add a verbose or quiet mode to choose whether they show up.

JulianGro commented 4 months ago

The code looks sound and the CI pipeline finishes, showing all the relevant messages. Merging.