Packaging Met.3D
Met.3D can be distributed as a conda package on Linux, and as portable archives or installers on Windows. This page goes over how to package Met.3D.
Conda
The Met.3D repository contains a recipe to build a conda package.
It is located at util/conda/.
The README.md file in that folder contains all instructions on how to build the package.
These will not be repeated here.
The finalized package can be uploaded to anaconda, which is also described in the readme file.
The package only contains the Met.3D binary, shaders, templates and config files. Dependencies are installed by conda when installing the conda package.
Windows binary distributions
For Windows specifically, Met.3D supports different forms of distributions via CPack. These can take multiple forms, such as portable ZIP files, or installers. The installers install the same files as the portable ZIP to a user defined location.
All distributions contain the Met.3D binary, shaders, templates and config files. Contrary to conda, all dependencies are also redistributed.
Packaging
Met.3D can be packed by running the following command from your release build folder:
cpack -G 7Z .
It will package Met.3D into a portable 7Zip file.
Alternatively, you can package an installer using:
cpack -G NSIS .
The output package will be placed into the build folder you ran the command from.
This requires NSIS to be installed on your system and added to your PATH.
The parameters used to generate the distributions are located in the CPackOptions.cmake.in file.
Note
There are other generators available as well. Just run cpack -G to see a list of them.
Licensing
Since these distributions contain binary redistributions of all dependencies, particular care has to go into ensuring that all licenses are compatible with Met.3D’s license and allow redistribution.
By default, the licenses of all dependencies are automatically copied into the licenses folder of the distribution.
These are automatically organized by vcpkg.
To the best of our knowledge, we are complying with all redistributed binary licenses. All licenses were checked for compliance with the GPL3 license under which Met.3D is distributed.
Particularly, the distributed FFmpeg codecs were checked, as we do not want to accidentally redistribute and use patented video encoders.
Since the FFmpeg build is directed by the QtMultimedia vcpkg port, it does not include any external codecs.
The FFmpeg vcpkg port automatically disables all external codecs unless otherwise specified in the requested features of the port.
That means, the avcodec*.dll does not contain external codecs.
When adding dependencies make sure their licenses are compatible with Met.3D’s and allow redistribution in binary form.