updatelogic.go 338 B

12345678910111213141516
  1. package update
  2. import v308 "imuslab.com/zoraxy/mod/update/v308"
  3. // Updater Core logic
  4. func runUpdateRoutineWithVersion(fromVersion int, toVersion int) {
  5. if fromVersion == 307 && toVersion == 308 {
  6. //Updating from v3.0.7 to v3.0.8
  7. err := v308.UpdateFrom307To308()
  8. if err != nil {
  9. panic(err)
  10. }
  11. }
  12. //ADD MORE VERSIONS HERE
  13. }