Skip to content

Commit

Permalink
enable browser autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Jul 20, 2023
1 parent d53d081 commit c341469
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/patches/00Cromite-Branding.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9009,8 +9009,8 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/Br
- private static final String UPDATE_VERSION_URL = "https://github.com/bromite/bromite/releases/latest/download/";
- private final String UPSTREAM_VERSION_URL = "https://www.bromite.org/upstream.txt";
- public static final String VULNERABLE_VERSION_DOC_URL = "https://www.bromite.org/vulnerable-version";
+ private final String REDIRECT_URL_PREFIX = "https://github.com/uazo/bromite-buildtools/releases/download/";
+ private static final String UPDATE_VERSION_URL = "https://github.com/uazo/bromite-buildtools/releases/latest/download/";
+ private final String REDIRECT_URL_PREFIX = "https://github.com/uazo/cromite/releases/download/";
+ private static final String UPDATE_VERSION_URL = "https://github.com/uazo/cromite/releases/latest/download/";
+ private final String UPSTREAM_VERSION_URL = "";
+ public static final String VULNERABLE_VERSION_DOC_URL = "";

Expand All @@ -9021,7 +9021,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/Br
if (redirectURL.indexOf(REDIRECT_URL_PREFIX) == 0) {
redirectURL = redirectURL.substring(REDIRECT_URL_PREFIX.length());
+ // adapt url
+ // example https://github.com/uazo/bromite-buildtools/releases/download/v114.0.5735.199-af55aa0ddfc47fbaffafd60c385d4c43c7c5ad0c
+ // example https://github.com/uazo/cromite/releases/download/v114.0.5735.199-af55aa0ddfc47fbaffafd60c385d4c43c7c5ad0c
+ String[] url_parts = redirectURL.split(Pattern.quote("-"));
+ if (url_parts.length > 0) {
+ redirectURL = url_parts[0].substring(1);
Expand Down

0 comments on commit c341469

Please sign in to comment.