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)
}
