1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 06:16:09 -04:00

use SHA512 to sign files

This commit is contained in:
Darien Raymond 2017-02-23 15:43:11 +01:00
parent c268916b9e
commit 3e395e93ac
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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", "--no-tty", "--batch", "--passphrase", pass, "--output", file+".sig", "--detach-sig", file)
cmd := exec.Command("gpg", "--digest-algo", "SHA512", "--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 {