From 07a865823526600af091b638fa45d5ac6e13f1bd Mon Sep 17 00:00:00 2001 From: Alexander David Frick Date: Sat, 30 Jul 2022 22:12:58 -0500 Subject: [PATCH] Update setup.sh --- setup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup.sh b/setup.sh index bbafd173..47389afb 100644 --- a/setup.sh +++ b/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" &&