Compare commits

...

21 Commits

Author SHA1 Message Date
wukko 5118e7ddfb revision: bump to 7 2025-08-28 23:52:55 +06:00
wukko 42947bebc1 merge: update to ungoogled-chromium 139.0.7258.154 2025-08-28 18:48:59 +06:00
jj ab2ee8d4e9 ci/release: fix changelog output (#47) 2025-08-27 09:47:40 +02:00
networkException 3799c9d957 Update to Chromium 139.0.7258.154 2025-08-26 23:27:18 +02:00
wukko 5abb6826a1 revision: bump to 6 2025-08-26 00:05:27 +06:00
wukko 1239a6715b helium/ui/omnibox: make "remove suggestion" button square 2025-08-25 23:55:41 +06:00
wukko 6311688cca helium/ui/tabs: make close button square 2025-08-25 23:55:12 +06:00
wukko 74da8e5721 helium/core/context-menu: remove google image desc entry 2025-08-25 23:54:54 +06:00
wukko 6db3e69109 helium/ui/gray-theme: set gray theme on reset, not blue 2025-08-25 23:54:08 +06:00
wukko 2873e42d24 helium/settings: fix appearance page
- updated "auto pin new tab groups" toggle text to not mention other devices
- removed gtk & qt options on linux
2025-08-25 23:53:38 +06:00
wukko dd31b185bd helium/settings: update search suggest toggle text
now it's more informational
2025-08-25 23:52:34 +06:00
jj 617f8df878 ci/release: use softprops action instead of deprecated one 2025-08-25 11:18:27 +00:00
jj 9f92137d3f ci: automatically tag commit and create release 2025-08-25 11:18:27 +00:00
jj dc626238a7 utils/helium_version: add support for generating root-only version 2025-08-25 10:49:05 +00:00
wukko fc9e935120 revision: bump to 5 2025-08-23 23:41:45 +06:00
wukko d0198c25f9 helium/ui: enable fluent scrollbar on windows & linux 2025-08-23 22:23:49 +06:00
jj 92f6d7d2c8 patches/bangs: fix bang completion cutting off suggested text (#41) 2025-08-23 13:47:46 +00:00
jj 988e4b4fb4 patches/bangs: add support for multiple triggers per bang
https://github.com/kagisearch/bangs/pull/259
2025-08-23 06:52:56 +00:00
jj 2ea2284c35 patches/bangs: fix DCHECK fail when triggered on text with leading space 2025-08-23 06:52:56 +00:00
jj e06a3a62f5 patches/native-messaging: fix env call to use current signature 2025-08-22 18:53:19 +00:00
jj b843eac0ce patches/block-requests: prevent profile_resetter from making requests 2025-08-21 13:32:09 +00:00
16 changed files with 318 additions and 52 deletions
+52
View File
@@ -0,0 +1,52 @@
name: Create new release on version bump
permissions:
contents: write
on:
push: { branches: ["main"] }
jobs:
check-release:
name: Create release if it makes sense
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Check if a new release is needed
id: info
env:
COMMIT_BEFORE: ${{ github.event.before }}
COMMIT_AFTER: ${{ github.event.after }}
shell: bash
run: |
mkdir -p dummy && echo 0 > dummy/revision.txt
cp utils/helium_version.py .
git checkout "$COMMIT_BEFORE" \
&& OLD_VERSION=$(python3 helium_version.py --tree . --print)
git checkout "$COMMIT_AFTER" \
&& NEW_VERSION=$(python3 helium_version.py --tree . --print)
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
{
printf '### Changelog\n```\n'
git log --oneline "$OLD_VERSION.."
echo '```'
} | tee body.md
fi
- name: Create Release
if: steps.info.outputs.version
id: create_release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.info.outputs.version }}
name: ${{ steps.info.outputs.version }}
body_path: body.md
-24
View File
@@ -1,24 +0,0 @@
name: Create new empty release
permissions:
contents: write
on:
push:
tags:
- '*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
+1 -1
View File
@@ -1 +1 @@
139.0.7258.138
139.0.7258.154
@@ -26,6 +26,26 @@
std::string command_id;
// Replace the promo URL with "command:<id>" if such a command ID is set
// via the feature params.
--- a/chrome/browser/profile_resetter/profile_resetter.cc
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
@@ -99,17 +99,6 @@ ProfileResetter::ProfileResetter(Profile
cookies_remover_(nullptr) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(profile_);
-
- google_brand::GetBrand(&brandcode_);
- if (brandcode_.empty()) {
- return;
- }
- config_fetcher_ = std::make_unique<BrandcodeConfigFetcher>(
- g_browser_process->system_network_context_manager()
- ->GetURLLoaderFactory(),
- base::BindOnce(&ProfileResetter::OnDefaultSettingsFetched,
- base::Unretained(this)),
- GURL("https://tools.google.com/service/update2"), brandcode_);
}
void ProfileResetter::OnDefaultSettingsFetched() {
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -281,6 +281,7 @@ GURL SpellcheckHunspellDictionary::GetDi
+59 -10
View File
@@ -267,7 +267,7 @@
// This closure is run when the default search provider is set to Google.
--- /dev/null
+++ b/components/search_engines/template_url_bang_manager.cc
@@ -0,0 +1,197 @@
@@ -0,0 +1,215 @@
+// Copyright 2025 The Helium Authors
+// You can use, redistribute, and/or modify this source code under
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
@@ -427,9 +427,25 @@
+
+ auto dict = std::move(bang).TakeDict();
+ auto bname = dict.FindString("s");
+ auto bbang = dict.FindString("t");
+
+ std::vector<const std::string*> triggers;
+ if (auto bbang = dict.FindString("t")) {
+ triggers.push_back(bbang);
+ }
+
+ if (auto bbangs = dict.FindList("ts")) {
+ triggers.reserve(triggers.size() + bbangs->size());
+
+ for (const auto& trigger : *bbangs) {
+ const std::string* value = trigger.GetIfString();
+ if (!value) continue;
+
+ triggers.push_back(value);
+ }
+ }
+
+ auto burl_template = dict.FindString("u");
+ if (!bname || !bbang || !burl_template) {
+ if (!bname || !burl_template || triggers.empty()) {
+ continue;
+ }
+
@@ -444,10 +460,12 @@
+ category_map_[index] = GetCategoryFromJSONObject(*bcategory);
+ }
+
+ // We need to pass the URL here as-is, because otherwise URLs
+ // which have the template in the path will have it %-encoded,
+ // which will break everything.
+ bangs_.emplace_back(index++, *bname, *bbang, *burl_template);
+ for (auto trigger : triggers) {
+ // We need to pass the URL here as-is, because otherwise URLs
+ // which have the template in the path will have it %-encoded,
+ // which will break everything.
+ bangs_.emplace_back(index++, *bname, *trigger, *burl_template);
+ }
+ }
+
+ LOG(INFO) << bangs_.size() << " bangs loaded";
@@ -778,19 +796,50 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/components/omnibox/browser/omnibox_edit_model.cc
+++ b/components/omnibox/browser/omnibox_edit_model.cc
@@ -1506,7 +1506,10 @@ void OmniboxEditModel::InternalSetUserTe
@@ -780,6 +780,17 @@ bool OmniboxEditModel::AcceptKeyword(
controller_->StopAutocomplete(/*clear_result=*/false);
+ const TemplateURL* turl =
+ controller_->client()->GetTemplateURLService()->GetTemplateURLForKeyword(
+ keyword_);
+
+ if (turl && turl->bang_id() > 0 && !user_text_.starts_with(u'!')) {
+ AutocompleteMatch match = CurrentMatch(nullptr);
+ if (!match.fill_into_edit.empty()) {
+ user_text_ = match.fill_into_edit;
+ }
+ }
+
is_keyword_hint_ = false;
keyword_mode_entry_method_ = entry_method;
if (original_user_text_with_keyword_.empty()) {
@@ -822,9 +833,6 @@ bool OmniboxEditModel::AcceptKeyword(
}
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
- const TemplateURL* turl =
- controller_->client()->GetTemplateURLService()->GetTemplateURLForKeyword(
- keyword_);
EmitEnteredKeywordModeHistogram(entry_method, turl);
return true;
}
@@ -1506,7 +1514,13 @@ void OmniboxEditModel::InternalSetUserTe
std::u16string OmniboxEditModel::MaybeStripKeyword(
const std::u16string& text) const {
- return is_keyword_selected()
+ std::u16string trimmed_text;
+ base::TrimWhitespace(text, base::TRIM_LEADING, &trimmed_text);
+
+ std::u16string actual_keyword = base::ToLowerASCII(
+ AutocompleteInput::SplitKeywordFromInput(text, false, nullptr));
+ AutocompleteInput::SplitKeywordFromInput(trimmed_text, false, nullptr));
+
+ return is_keyword_selected() && actual_keyword == keyword_
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
: text;
}
@@ -2746,9 +2749,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
@@ -2746,9 +2760,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
return false;
size_t keyword_length = new_text.length() - 1;
+7 -2
View File
@@ -18,7 +18,7 @@
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
IDS_CONTENT_CONTEXT_READING_MODE);
}
@@ -3509,6 +3507,7 @@ void RenderViewContextMenu::ExecuteComma
@@ -3509,10 +3507,12 @@ void RenderViewContextMenu::ExecuteComma
}
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
@@ -26,7 +26,12 @@
AddSpellCheckServiceItem(&menu_model_, is_checked);
}
@@ -3879,6 +3878,8 @@ bool RenderViewContextMenu::IsVideoFrame
void RenderViewContextMenu::AddAccessibilityLabelsServiceItem(bool is_checked) {
+ return;
if (is_checked) {
menu_model_.AddCheckItemWithStringId(
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
@@ -3879,6 +3879,8 @@ bool RenderViewContextMenu::IsVideoFrame
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
bool draw_icon,
bool add_separator) {
@@ -114,17 +114,18 @@
// DIR_ROAMING_USER_DATA has been overridden by a command-line option.
--- a/chrome/common/chrome_paths_linux.cc
+++ b/chrome/common/chrome_paths_linux.cc
@@ -101,6 +101,23 @@ bool GetDefaultUserDataDirectory(base::F
@@ -101,6 +101,24 @@ bool GetDefaultUserDataDirectory(base::F
return true;
}
+bool GetChromeUserDataDirectory(base::FilePath* result) {
+ std::unique_ptr<base::Environment> env(base::Environment::Create());
+ base::FilePath config_dir;
+ std::string chrome_config_home_str;
+ if (env->GetVar("CHROME_CONFIG_HOME", &chrome_config_home_str) &&
+ base::IsStringUTF8(chrome_config_home_str)) {
+ config_dir = base::FilePath::FromUTF8Unsafe(chrome_config_home_str);
+ std::optional<std::string> chrome_config_home_str =
+ env->GetVar("CHROME_CONFIG_HOME");
+
+ if (chrome_config_home_str && base::IsStringUTF8(*chrome_config_home_str)) {
+ config_dir = base::FilePath::FromUTF8Unsafe(*chrome_config_home_str);
+ } else {
+ config_dir =
+ GetXDGDirectory(env.get(), kXdgConfigHomeEnvVar, kDotConfigDir);
@@ -0,0 +1,66 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -258,6 +258,9 @@
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
Automatically pin new tab groups created on any device to the bookmarks bar
</message>
+ <message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS_HELIUM" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
+ Automatically pin new tab groups to the bookmarks bar
+ </message>
<message name="IDS_SETTINGS_HOVER_CARD_TITLE" desc="Title for the section in appearance settings for configuring what gets displayed in tab hovercards.">
Tab hover preview card
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -524,7 +524,7 @@ void AddAppearanceStrings(content::WebUI
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
{"showTabGroupsInBookmarksBar",
IDS_SETTINGS_SHOW_TAB_GROUPS_IN_BOOKMARKS_BAR},
- {"autoPinNewTabGroups", IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS},
+ {"autoPinNewTabGroups", IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS_HELIUM},
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -47,40 +47,12 @@
hidden="[[!pageVisibility.setTheme]]"
label="$i18n{themes}" sub-label="[[themeSublabel_]]"
on-click="onThemeClick_" external></cr-link-row>
-<if expr="not is_linux">
<template is="dom-if" if="[[prefs.extensions.theme.id.value]]">
<div class="separator"></div>
<cr-button id="useDefault" on-click="onUseDefaultClick_">
$i18n{resetToDefault}
</cr-button>
</template>
-</if>
-<if expr="is_linux">
- <div class="settings-row continuation"
- hidden="[[!showThemesSecondary_(
- prefs.extensions.theme.id.value, systemTheme_)]]"
- id="themesSecondaryActions">
- <div class="separator"></div>
- <template is="dom-if" if="[[showUseClassic_(
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
- <cr-button id="useDefault" on-click="onUseDefaultClick_">
- $i18n{useClassicTheme}
- </cr-button>
- </template>
- <template is="dom-if" if="[[showUseGtk_(
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
- <cr-button id="useGtk" on-click="onUseGtkClick_">
- $i18n{useGtkTheme}
- </cr-button>
- </template>
- <template is="dom-if" if="[[showUseQt_(
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
- <cr-button id="useQt" on-click="onUseQtClick_">
- $i18n{useQtTheme}
- </cr-button>
- </template>
- </div>
-</if>
</div>
<div id="toolbarRow" class="settings-row">
<cr-link-row id="customizeToolbar"
@@ -0,0 +1,37 @@
--- a/chrome/app/settings_chromium_strings.grdp
+++ b/chrome/app/settings_chromium_strings.grdp
@@ -331,6 +331,9 @@
<message name="IDS_SETTINGS_SUGGEST_PREF_DESC" desc="The description of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
When you type in the address bar or search box, Chromium sends what you type to your default search engine to get better suggestions. This is off in Incognito.
</message>
+ <message name="IDS_SETTINGS_SUGGEST_PREF_DESC_HELIUM" desc="The description of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
+ When you type in the address bar, Helium sends what you type to your default search engine to get suggestions. This is off in Incognito.
+ </message>
<message name="IDS_SETTINGS_SEARCH_AGGREGATOR_PREF_DESC" desc="The description of the 'Show suggestions and results from your organization' checkbox, which enables/disables sending omnibox input to the user's organization's search aggregator to get additional suggestions. Note that this setting is controlled by enterprise policy and, while a checkbox is shown, it is always enabled and cannot be disabled.">
When you type in the address bar or search box, Chromium sends what you type to your organization's search, AI, and agent tools to get suggestions.
</message>
--- a/chrome/app/shared_settings_strings.grdp
+++ b/chrome/app/shared_settings_strings.grdp
@@ -254,6 +254,9 @@
<message name="IDS_SETTINGS_SUGGEST_PREF" desc="The label of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
Improve search suggestions
</message>
+ <message name="IDS_SETTINGS_SUGGEST_PREF_HELIUM" desc="The label of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
+ Suggestions from the search engine
+ </message>
<!-- Sync Accounts page (used by the <settings-sync-account-control> element) -->
<message name="IDS_SETTINGS_PEOPLE_SIGNED_IN_TO_ACCOUNT" desc="The text displayed to the user that the profile is currently signed in to a specific account.">
Signed in to <ph name="EMAIL">$1<ex>abcd@google.com</ex></ph>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1629,8 +1629,8 @@ void AddPersonalizationOptionsStrings(co
{"enablePersonalizationLoggingDesc",
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
- {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF},
- {"searchSuggestPrefDesc", IDS_SETTINGS_SUGGEST_PREF_DESC},
+ {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF_HELIUM},
+ {"searchSuggestPrefDesc", IDS_SETTINGS_SUGGEST_PREF_DESC_HELIUM},
{"searchAggregatorSuggestPref", IDS_SETTINGS_SEARCH_AGGREGATOR_PREF},
{"searchAggregatorSuggestPrefDesc",
IDS_SETTINGS_SEARCH_AGGREGATOR_PREF_DESC},
@@ -0,0 +1,11 @@
--- a/ui/native_theme/features/native_theme_features.cc
+++ b/ui/native_theme/features/native_theme_features.cc
@@ -46,7 +46,7 @@ BASE_FEATURE(kFluentScrollbar,
// once it is complete.
BASE_FEATURE(kFluentOverlayScrollbar,
"FluentOverlayScrollbar",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT);
} // namespace features
+7 -4
View File
@@ -72,16 +72,19 @@
local_answer_header_and_suggestion_and_buttons_ =
AddChildView(std::make_unique<views::View>());
local_answer_header_and_suggestion_and_buttons_
@@ -304,7 +301,7 @@ OmniboxResultView::OmniboxResultView(Omn
@@ -304,8 +301,9 @@ OmniboxResultView::OmniboxResultView(Omn
&OmniboxResultView::ButtonPressed, base::Unretained(this),
OmniboxPopupSelection::FOCUSED_BUTTON_REMOVE_SUGGESTION)));
remove_suggestion_button_->SetProperty(views::kMarginsKey,
- gfx::Insets::TLBR(0, 0, 0, 16));
- views::InstallCircleHighlightPathGenerator(remove_suggestion_button_);
+ gfx::Insets::TLBR(0, 0, 0, 4));
views::InstallCircleHighlightPathGenerator(remove_suggestion_button_);
+ views::InstallRoundRectHighlightPathGenerator(remove_suggestion_button_,
+ gfx::Insets::VH(1, 1), 5);
auto* const remove_focus_ring =
views::FocusRing::Get(remove_suggestion_button_);
@@ -359,10 +356,9 @@ std::unique_ptr<views::Background> Omnib
remove_focus_ring->SetHasFocusPredicate(base::BindRepeating(
@@ -359,10 +357,9 @@ std::unique_ptr<views::Background> Omnib
/*for_border_thickness=*/0);
}
@@ -94,7 +97,7 @@
}
void OmniboxResultView::SetMatch(const AutocompleteMatch& match) {
@@ -499,14 +495,6 @@ void OmniboxResultView::ApplyThemeAndRef
@@ -499,14 +496,6 @@ void OmniboxResultView::ApplyThemeAndRef
popup_view_->controller()->client()->GetTemplateURLService())) {
const OmniboxPopupSelection::LineState line_state =
popup_view_->GetSelection().state;
@@ -59,3 +59,14 @@
${this.colors_.map((item, index) => html`
<cr-theme-color
class="chrome-color"
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -378,6 +378,8 @@ void ThemeService::UseDefaultTheme() {
}
ClearThemeData(/*clear_ntp_background=*/true);
+ profile_->GetPrefs()->SetBoolean(prefs::kGrayscaleThemeEnabled, true);
+
NotifyThemeChanged();
}
+31
View File
@@ -126,3 +126,34 @@
return path;
}
--- a/chrome/browser/ui/views/tabs/tab_close_button.cc
+++ b/chrome/browser/ui/views/tabs/tab_close_button.cc
@@ -41,6 +41,8 @@
namespace {
constexpr int kIconSize = 16;
constexpr gfx::Size kButtonSize = {28, 28};
+const gfx::Insets kInkDropInsets = gfx::Insets::VH(1, 0);
+constexpr int kCornerRadius = 4;
} // namespace
TabCloseButton::TabCloseButton(PressedCallback pressed_callback,
@@ -69,8 +71,9 @@ TabCloseButton::TabCloseButton(PressedCa
// but needs to be explicitly mirrored for RTL.
// TODO(http://crbug.com/1056490): Make ink drops in RTL work the same way as
// focus rings.
+
auto ink_drop_highlight_path =
- std::make_unique<views::CircleHighlightPathGenerator>(gfx::Insets());
+ std::make_unique<views::RoundRectHighlightPathGenerator>(kInkDropInsets, kCornerRadius);
ink_drop_highlight_path->set_use_contents_bounds(true);
ink_drop_highlight_path->set_use_mirrored_rect(true);
views::HighlightPathGenerator::Install(this,
@@ -80,7 +83,7 @@ TabCloseButton::TabCloseButton(PressedCa
// TODO(http://crbug.com/1056490): Once this bug is solved and explicit
// mirroring for ink drops is not needed, we can combine these two.
auto ring_highlight_path =
- std::make_unique<views::CircleHighlightPathGenerator>(gfx::Insets());
+ std::make_unique<views::RoundRectHighlightPathGenerator>(kInkDropInsets, kCornerRadius);
ring_highlight_path->set_use_contents_bounds(true);
views::FocusRing::Get(this)->SetPathGenerator(std::move(ring_highlight_path));
+3
View File
@@ -165,6 +165,8 @@ helium/settings/reenable-update-status.patch
helium/settings/privacy-page-tweaks.patch
helium/settings/fix-section-separators.patch
helium/settings/fix-text-on-cookies-page.patch
helium/settings/update-search-suggest-text.patch
helium/settings/fix-appearance-page.patch
helium/hop/setup.patch
helium/hop/disable-password-manager.patch
@@ -216,3 +218,4 @@ helium/ui/fix-pwa-toolbar.patch
helium/ui/top-container.patch
helium/ui/status-bubble.patch
helium/ui/clean-incognito-guest-ntp.patch
helium/ui/enable-fluent-scrollbar.patch
+1 -1
View File
@@ -1 +1 @@
4
7
+6 -5
View File
@@ -39,7 +39,7 @@ def parse_args():
"""Argument parsing"""
parser = argparse.ArgumentParser()
parser.add_argument("--tree", type=Path, required=True)
parser.add_argument("--platform-tree", type=Path, required=True)
parser.add_argument("--platform-tree", type=Path)
parser.add_argument("--chromium-tree", type=Path)
parser.add_argument("--print", action=argparse.BooleanOptionalAction)
args = parser.parse_args()
@@ -52,13 +52,15 @@ def get_version_parts(tree, platform_tree):
"HELIUM_MAJOR": tree / "version.txt",
"HELIUM_MINOR": tree / "chromium_version.txt",
"HELIUM_PATCH": tree / "revision.txt",
"HELIUM_PLATFORM": platform_tree / "revision.txt",
}
if platform_tree is not None:
version_paths["HELIUM_PLATFORM"] = platform_tree / "revision.txt"
version_parts = {}
for name, path in version_paths.items():
delta = 0 if name != "HELIUM_MINOR" else -CHROME_VERSION_BASE
version_parts[name] = get_version_part(path) + delta
version_parts[name] = str(get_version_part(path) + delta)
return version_parts
@@ -68,8 +70,7 @@ def main():
version_parts = get_version_parts(tree, platform_tree)
if should_print:
print(f"{version_parts['HELIUM_MAJOR']}.{version_parts['HELIUM_MINOR']}." + \
f"{version_parts['HELIUM_PATCH']}.{version_parts['HELIUM_PLATFORM']}")
print('.'.join(version_parts.values()))
else:
chrome_version_path = chromium_tree / "chrome/VERSION"
check_existing_version(chrome_version_path)