refactor(patch): execute all patches in dev version (#7807)
This commit is contained in:
@ -2,6 +2,7 @@ package bootstrap
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/alist-org/alist/v3/internal/bootstrap/patch"
|
||||
"github.com/alist-org/alist/v3/internal/conf"
|
||||
"github.com/alist-org/alist/v3/pkg/utils"
|
||||
@ -40,6 +41,11 @@ func compareVersion(majorA, minorA, patchNumA, majorB, minorB, patchNumB int) bo
|
||||
|
||||
func InitUpgradePatch() {
|
||||
if !strings.HasPrefix(conf.Version, "v") {
|
||||
for _, vp := range patch.UpgradePatches {
|
||||
for i, p := range vp.Patches {
|
||||
safeCall(vp.Version, i, p)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if LastLaunchedVersion == conf.Version {
|
||||
|
Reference in New Issue
Block a user