fix gpg sign

pull/432/head
Darien Raymond 2017-02-23 15:18:40 +01:00
parent 6fb361d1db
commit 61a3e88635
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func buildV2Ray(targetFile string, version string, goOS GoOS, goArch GoArch) err
func signFile(file string) error {
pass := os.Getenv("GPG_SIGN_PASS")
cmd := exec.Command("gpg", "--passphrase", pass, "--output", file+".sig", "--detach-sig", file)
cmd := exec.Command("gpg", "--no-tty", "--batch", "--passphrase", pass, "--output", file+".sig", "--detach-sig", file)
cmd.Env = append(cmd.Env, os.Environ()...)
output, err := cmd.CombinedOutput()
if len(output) > 0 {