fix packager permissions and deploy vars