[Secrets] add some build phase scripts to make the secret files work