Cloudreve/pkg/conf/version.go

12 lines
254 B
Go
Raw Normal View History

package conf
import "io/ioutil"
const BackendVersion = string("3.0.0-b")
// WriteVersionLock 将当前版本信息写入 version.lock
func WriteVersionLock() error {
err := ioutil.WriteFile("version.lock", []byte(BackendVersion), 0644)
return err
}