mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 03:07:48 -03:00
add welcome page
This commit is contained in:
parent
48db127c71
commit
4d7c64e6b9
5 changed files with 11 additions and 7 deletions
3
infra/initial_preferences
Normal file
3
infra/initial_preferences
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"first_run_tabs": [ "https://thorium.rocks/welcome/" ]
|
||||
}
|
3
setup.sh
3
setup.sh
|
@ -74,6 +74,9 @@ cp -r -v pak_src/bin/pak-win/. $HOME/chromium/src/out/thorium/ &&
|
|||
mkdir -v -p $HOME/chromium/src/out/thorium/default_apps &&
|
||||
cp -r -v infra/default_apps/. $HOME/chromium/src/out/thorium/default_apps/ &&
|
||||
|
||||
# Add initial preferences file to open Thorium welcome page on first run.
|
||||
cp -v infra/initial_preferences $HOME/chromium/src/out/thorium/ &&
|
||||
|
||||
echo " # Workaround for DevTools" &&
|
||||
mkdir -v -p $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ &&
|
||||
cp -r -v src/third_party/devtools-frontend/src/front_end/Images/src/chromeSelectDark.svg $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ &&
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2023 Alex313031
|
||||
# Copyright (c) 2023 Alex313031 and Iridium
|
||||
# Shows the output of a given command only on failure, or when VERBOSE is set.
|
||||
log_cmd() {
|
||||
if [ "${VERBOSE:-}" ]; then
|
||||
|
@ -180,6 +180,7 @@ stage_install_common() {
|
|||
install -m 755 "${OUTPUTDIR}/thorium-shell" "${STAGEDIR}/usr/bin/"
|
||||
install -m 755 "${OUTPUTDIR}/chromedriver" "${STAGEDIR}/${INSTALLDIR}/"
|
||||
install -m 755 "${OUTPUTDIR}/pak" "${STAGEDIR}/usr/bin/"
|
||||
install -m 644 "${OUTPUTDIR}/initial_preferences" "${STAGEDIR}/${INSTALLDIR}/"
|
||||
else
|
||||
install -m 644 "${OUTPUTDIR}/theme_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/"
|
||||
install -m 644 "${OUTPUTDIR}/ui_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2023 The Chromium Authors and Alex313031 and gz83
|
||||
# Copyright 2023 The Chromium Authors, Alex313031, and gz83
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
|||
#
|
||||
thorium.exe: %(ChromeDir)s\
|
||||
chrome_proxy.exe: %(ChromeDir)s\
|
||||
# initial_preferences file, to show Thorium welcome page on first start
|
||||
initial_preferences %(ChromeDir)s\
|
||||
#
|
||||
# Chrome version dir assembly manifest.
|
||||
# The name of this file must match the name of the version dir, so we cannot
|
||||
|
|
5
src/third_party/blink/common/features.cc
vendored
5
src/third_party/blink/common/features.cc
vendored
|
@ -1775,11 +1775,6 @@ BASE_FEATURE(kQuoteEmptySecChUaStringHeadersConsistently,
|
|||
"QuoteEmptySecChUaStringHeadersConsistently",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kStorageAccessAPI,
|
||||
"StorageAccessAPI",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT
|
||||
);
|
||||
|
||||
const base::FeatureParam<int> kStorageAccessAPIImplicitGrantLimit{
|
||||
&kStorageAccessAPI, "storage-access-api-implicit-grant-limit", 5};
|
||||
const base::FeatureParam<bool> kStorageAccessAPIAutoGrantInFPS{
|
||||
|
|
Loading…
Reference in a new issue