33 lines
873 B
Go
33 lines
873 B
Go
package openssl
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"code.byted.org/infcp/vecps-cli/pkg/constant"
|
|
"code.byted.org/infcp/vecps-cli/pkg/util"
|
|
)
|
|
|
|
//go:generate wget -c -q -O openssl-linux-amd64-3.6.3.tar.gz https://fs.tosone.cn/vecps-cli/addons/openssl/openssl-linux-amd64-3.6.3.tar.gz
|
|
//go:generate wget -c -q -O openssl-linux-amd64-3.6.3.tar.gz.sha256 https://fs.tosone.cn/vecps-cli/addons/openssl/openssl-linux-amd64-3.6.3.tar.gz.sha256
|
|
//go:generate shasum -a 256 -c openssl-linux-amd64-3.6.3.tar.gz.sha256
|
|
|
|
//go:embed openssl-linux-amd64-3.6.3.tar.gz
|
|
var data embed.FS
|
|
|
|
// Initialize ...
|
|
func Initialize() (err error) {
|
|
var archive = &util.Archive{
|
|
EmbedFile: data,
|
|
Filename: "openssl-linux-amd64-3.6.3.tar.gz",
|
|
Core: "openssl/",
|
|
}
|
|
if err = archive.Dump(); err != nil {
|
|
return
|
|
}
|
|
return
|
|
}
|
|
|
|
var (
|
|
BinDir = []string{"%s/" + constant.VecpsAddonsDir + "/openssl/bin"}
|
|
)
|