Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 authored Jul 31, 2022
1 parent 7b9cb3a commit 07a8658
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down Expand Up @@ -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" &&

Expand Down

0 comments on commit 07a8658

Please sign in to comment.