mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-18 07:17:32 -05:00
Merge branch 'master' of https://github.com/v2ray/v2ray-core
This commit is contained in:
commit
3632474c8f
@ -35,7 +35,7 @@ func buildV2Ray(targetFile string, version string, goOS GoOS, goArch GoArch) err
|
|||||||
|
|
||||||
func signFile(file string) error {
|
func signFile(file string) error {
|
||||||
pass := os.Getenv("GPG_SIGN_PASS")
|
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()...)
|
cmd.Env = append(cmd.Env, os.Environ()...)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if len(output) > 0 {
|
if len(output) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user