feat: add release manifest and enforce certificate file verification in setupCertificate
Build and Release / release (push) Successful in 42s

This commit is contained in:
2026-05-26 18:53:28 +07:00
parent 7bcd8b43d9
commit 9cdd50f230
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -11,16 +11,16 @@ import (
const caCertName = "firefly-go-proxy-ca.crt"
func setupCertificate(installSystemCA bool) (*tls.Certificate, error) {
if !installSystemCA {
return &goproxy.GoproxyCa, nil
}
if _, err := os.Stat(caCertName); os.IsNotExist(err) {
if err := os.WriteFile(caCertName, goproxy.GoproxyCa.Certificate[0], 0644); err != nil {
return nil, err
}
}
if !installSystemCA {
return &goproxy.GoproxyCa, nil
}
absPath, err := filepath.Abs(caCertName)
if err != nil {
return nil, err
+2 -2
View File
@@ -1,5 +1,5 @@
{
"tag": "1.2-02",
"title": "PreBuild Version 1.2 - 02"
"tag": "1.2-03",
"title": "PreBuild Version 1.2 - 03"
}