Try using postinstall to build files?