thorium-mirror/setup.sh

60 lines
2 KiB
Bash
Raw Normal View History

2021-10-26 07:18:13 -03:00
#!/bin/bash
2022-04-09 04:11:10 -04:00
YEL='\033[1;33m' # Yellow
printf "\n" &&
printf "${YEL}Creating build output directory...\n" &&
tput sgr0 &&
2021-10-29 06:58:28 -03:00
mkdir -v -p $HOME/chromium/src/out/thorium/ &&
2022-04-09 04:11:10 -04:00
printf "\n" &&
printf "${YEL}Copying source files over Chromium tree...\n" &&
tput sgr0 &&
2021-10-28 13:53:43 -03:00
2021-10-26 07:18:13 -03:00
cp -r -v build/. $HOME/chromium/src/build/ &&
cp -r -v chrome/. $HOME/chromium/src/chrome/ &&
2021-10-26 15:51:28 -03:00
cp -r -v components/. $HOME/chromium/src/components &&
2021-10-26 07:18:13 -03:00
cp -r -v content/. $HOME/chromium/src/content/ &&
cp -r -v media/. $HOME/chromium/src/media/ &&
2021-10-28 10:47:38 -03:00
cp -r -v net/. $HOME/chromium/src/net/ &&
2021-11-11 22:58:30 -03:00
cp -r -v sandbox/. $HOME/chromium/src/sandbox/ &&
2021-11-30 17:04:46 -03:00
cp -r -v third_party/. $HOME/chromium/src/third_party/ &&
cp -r -v tools/. $HOME/chromium/src/tools/ &&
2021-10-26 07:18:13 -03:00
cp -r -v ui/. $HOME/chromium/src/ui/ &&
cp -r -v v8/. $HOME/chromium/src/v8/ &&
2021-10-28 13:53:43 -03:00
cp -v chrome-devtools/chrome-devtools.svg $HOME/chromium/src/out/thorium/ &&
2021-11-04 15:18:13 -03:00
cp -r -v content_shell/. $HOME/chromium/src/out/thorium/ &&
2022-02-11 17:53:38 -03:00
cp -r -v pak_src/bin/pak $HOME/chromium/src/out/thorium/ &&
cp -r -v pak_src/bin/pak-win/. $HOME/chromium/src/out/thorium/ &&
2021-10-26 07:18:13 -03:00
2022-04-09 04:11:10 -04:00
printf "${YEL}Done!\n" &&
printf "\n" &&
printf "${YEL}Setting NINJA_SUMMARIZE_BUILD=1 and aliases to download the PGO Profiles for supported targets, and the gsync alias.\n" &&
printf "\n" &&
printf "${YEL}Dropping you to ~/chromium/src.\n" &&
printf "\n" &&
printf "${YEL}Look in this file to see the aliases and what they're for.\n" &&
printf "\n" &&
printf "${YEL}Enjoy Thorium!\n" &&
printf "\n" &&
tput sgr0 &&
2021-10-26 07:18:13 -03:00
cd $HOME/chromium/src &&
export NINJA_SUMMARIZE_BUILD=1 &&
alias gsync='gclient sync --with_branch_heads --with_tags -f -R -D' &&
alias pgo='python tools/update_pgo_profiles.py --target=linux update --gs-url-base=chromium-optimization-profiles/pgo_profiles' &&
alias pgow='python tools/update_pgo_profiles.py --target=win64 update --gs-url-base=chromium-optimization-profiles/pgo_profiles' &&
alias pgom='python tools/update_pgo_profiles.py --target=mac update --gs-url-base=chromium-optimization-profiles/pgo_profiles' &&
2021-10-26 07:18:13 -03:00
exit 0