Skip to content

Commit

Permalink
all: sync rc fix with master
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Mar 13, 2024
1 parent 6f7bfd6 commit 55fb914
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions bamboo-specs/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
'jobs':
- 'Publish to GitHub Releases'

# TODO(e.burkov): In jobs below find out why the explicit checkout is
# performed.
'Build frontend':
'docker':
'image': '${bamboo.dockerGo}'
Expand Down
3 changes: 0 additions & 3 deletions bamboo-specs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
set -e -f -u -x
# Explicitly checkout the revision that we need.
git checkout "${bamboo.repository.revision.number}"
make\
ARCH="amd64"\
OS="windows darwin linux"\
Expand Down
9 changes: 8 additions & 1 deletion internal/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,14 @@ func initWeb(opts options, clientBuildFS fs.FS, upd *updater.Updater) (web *webA
}
}

disableUpdate := opts.disableUpdate || version.Channel() == version.ChannelDevelopment
disableUpdate := opts.disableUpdate
switch version.Channel() {
case
version.ChannelDevelopment,
version.ChannelCandidate:
disableUpdate = true
}

if disableUpdate {
log.Info("AdGuard Home updates are disabled")
}
Expand Down
3 changes: 2 additions & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import (

// Channel constants.
const (
ChannelBeta = "beta"
ChannelCandidate = "candidate"
ChannelDevelopment = "development"
ChannelEdge = "edge"
ChannelBeta = "beta"
ChannelRelease = "release"
)

Expand Down

0 comments on commit 55fb914

Please sign in to comment.