refactor: reorganize modules and add Linux build tooling
This commit is contained in:
18
module/base/fts/cmd/cli/main.go
Normal file
18
module/base/fts/cmd/cli/main.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/licence"
|
||||
"git.apinb.com/bsm-sdk/core/utils"
|
||||
)
|
||||
|
||||
// go env -w CGO_ENABLED=0
|
||||
// go env -w GOOS=linux
|
||||
// go env -w GOARCH=amd64
|
||||
// go build -o generateLicence ./cmd/cli/
|
||||
func main() {
|
||||
data, err := licence.BuildLicence("slcor", 20250101, 20350101, []string{"bsm", licence.GetMachineCode()}, nil)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
utils.StringToFile("/data/app/etc/licence.key", data)
|
||||
}
|
||||
Reference in New Issue
Block a user