Modify: move aria2 into internal packages / migration version check

This commit is contained in:
HFO4
2020-02-22 12:18:49 +08:00
parent 1ac4767db7
commit a8272a66b7
27 changed files with 1849 additions and 81 deletions

View File

@@ -1,12 +1,7 @@
package conf
import "io/ioutil"
// BackendVersion 当前后端版本号
const BackendVersion = string("3.0.0-beta1")
// 当前后端版本
const BackendVersion = string("3.0.0-b")
// WriteVersionLock 将当前版本信息写入 version.lock
func WriteVersionLock() error {
err := ioutil.WriteFile("version.lock", []byte(BackendVersion), 0644)
return err
}
// RequiredDBVersion 与当前版本匹配的数据库版本
const RequiredDBVersion = string("3.0.0-beta1")