mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-10-24 15:55:46 +00:00
fix gpg sign
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user