Build cortex package into one file