mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 11:27:32 -03:00
Update setup.sh
This commit is contained in:
parent
7b9cb3a47f
commit
07a8658235
1 changed files with 13 additions and 0 deletions
13
setup.sh
13
setup.sh
|
@ -18,6 +18,7 @@ try() { "$@" || die "${RED}Failed $*"; }
|
|||
displayHelp () {
|
||||
printf "\n" &&
|
||||
printf "${bold}${GRE}Script to copy Thorium source files over the Chromium source tree.${c0}\n" &&
|
||||
printf "${bold}${YEL}Use the --mac flag for MacOS builds.${c0}\n" &&
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
|
@ -58,6 +59,18 @@ cp -r -v pak_src/bin/pak-win/. $HOME/chromium/src/out/thorium/ &&
|
|||
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/ &&
|
||||
|
||||
# MacOS Widevine Workaround
|
||||
copyMacOS () {
|
||||
printf "\n" &&
|
||||
printf "${YEL}Copying cdm_registration.cc for MacOS...${c0}\n" &&
|
||||
cp -r -v infra/cdm_registration.cc $HOME/chromium/src/chrome/common/media/ &&
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
--mac) copyMacOS;
|
||||
esac
|
||||
|
||||
printf "${GRE}Done!\n" &&
|
||||
printf "\n" &&
|
||||
|
||||
|
|
Loading…
Reference in a new issue