upgrade_unsupp.go 670 B

12345678910111213141516171819202122232425
  1. // Copyright (C) 2014 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. //go:build noupgrade || ios
  7. // +build noupgrade ios
  8. package upgrade
  9. const DisabledByCompilation = true
  10. func upgradeTo(binary string, rel Release) error {
  11. return ErrUpgradeUnsupported
  12. }
  13. func upgradeToURL(archiveName, binary, url string) error {
  14. return ErrUpgradeUnsupported
  15. }
  16. func LatestRelease(releasesURL, current string, upgradeToPreRelease bool) (Release, error) {
  17. return Release{}, ErrUpgradeUnsupported
  18. }