add welcome page

This commit is contained in:
Alexander Frick 2023-04-28 18:17:47 -05:00
parent 48db127c71
commit 4d7c64e6b9
5 changed files with 11 additions and 7 deletions

View file

@ -0,0 +1,3 @@
{
"first_run_tabs": [ "https://thorium.rocks/welcome/" ]
}

View file

@ -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 && mkdir -v -p $HOME/chromium/src/out/thorium/default_apps &&
cp -r -v infra/default_apps/. $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" && echo " # Workaround for DevTools" &&
mkdir -v -p $HOME/chromium/src/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ && 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/ && 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/ &&

View file

@ -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. # Shows the output of a given command only on failure, or when VERBOSE is set.
log_cmd() { log_cmd() {
if [ "${VERBOSE:-}" ]; then if [ "${VERBOSE:-}" ]; then
@ -180,6 +180,7 @@ stage_install_common() {
install -m 755 "${OUTPUTDIR}/thorium-shell" "${STAGEDIR}/usr/bin/" install -m 755 "${OUTPUTDIR}/thorium-shell" "${STAGEDIR}/usr/bin/"
install -m 755 "${OUTPUTDIR}/chromedriver" "${STAGEDIR}/${INSTALLDIR}/" install -m 755 "${OUTPUTDIR}/chromedriver" "${STAGEDIR}/${INSTALLDIR}/"
install -m 755 "${OUTPUTDIR}/pak" "${STAGEDIR}/usr/bin/" install -m 755 "${OUTPUTDIR}/pak" "${STAGEDIR}/usr/bin/"
install -m 644 "${OUTPUTDIR}/initial_preferences" "${STAGEDIR}/${INSTALLDIR}/"
else else
install -m 644 "${OUTPUTDIR}/theme_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/" install -m 644 "${OUTPUTDIR}/theme_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/"
install -m 644 "${OUTPUTDIR}/ui_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/" install -m 644 "${OUTPUTDIR}/ui_resources_100_percent.pak" "${STAGEDIR}/${INSTALLDIR}/"

View file

@ -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 # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
@ -8,6 +8,8 @@
# #
thorium.exe: %(ChromeDir)s\ thorium.exe: %(ChromeDir)s\
chrome_proxy.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. # Chrome version dir assembly manifest.
# The name of this file must match the name of the version dir, so we cannot # The name of this file must match the name of the version dir, so we cannot

View file

@ -1775,11 +1775,6 @@ BASE_FEATURE(kQuoteEmptySecChUaStringHeadersConsistently,
"QuoteEmptySecChUaStringHeadersConsistently", "QuoteEmptySecChUaStringHeadersConsistently",
base::FEATURE_ENABLED_BY_DEFAULT); base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kStorageAccessAPI,
"StorageAccessAPI",
base::FEATURE_ENABLED_BY_DEFAULT
);
const base::FeatureParam<int> kStorageAccessAPIImplicitGrantLimit{ const base::FeatureParam<int> kStorageAccessAPIImplicitGrantLimit{
&kStorageAccessAPI, "storage-access-api-implicit-grant-limit", 5}; &kStorageAccessAPI, "storage-access-api-implicit-grant-limit", 5};
const base::FeatureParam<bool> kStorageAccessAPIAutoGrantInFPS{ const base::FeatureParam<bool> kStorageAccessAPIAutoGrantInFPS{