Update setup.sh

This commit is contained in:
Alexander David Frick 2022-09-04 10:46:19 -05:00 committed by GitHub
parent 3632450ed5
commit d2a1541f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ displayHelp () {
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 "${bold}${YEL}Use the --raspi flag for Raspberry Pi builds.${c0}\n" &&
printf "${bold}${YEL}Use the --woa flag for Windows on ARM builds.${c0}\n" &&
printf "\n"
}
@ -94,6 +95,19 @@ case $1 in
--raspi) copyRaspi;
esac
# Windows on ARM workaround
copyWOA () {
printf "\n" &&
printf "${YEL}Copying Windows on ARM build files...${c0}\n" &&
cp -r -v arm/build/config/* $HOME/chromium/src/build/config/ &&
cp -r -f -v arm/arm.gni $HOME/chromium/src/build/config/ &&
printf "\n"
}
case $1 in
--woa) copyWOA;
esac
printf "${GRE}Done!\n" &&
printf "\n" &&