Update setup.sh

This commit is contained in:
Alexander David Frick 2022-08-07 17:10:20 -05:00 committed by GitHub
parent 874f0c0141
commit 4dfbeedcd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@ 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 "${bold}${YEL}Use the --raspi flag for Raspberry Pi builds.${c0}\n" &&
printf "\n"
}
@ -81,6 +82,19 @@ case $1 in
--mac) copyMacOS;
esac
# Raspberry Pi Source Files
copyRaspi () {
printf "\n" &&
printf "${YEL}Copying Raspberry Pi build files...${c0}\n" &&
cp -r -v arm/config/* $HOME/chromium/src/build/config/ &&
cp -r -v arm/arm.gni $HOME/chromium/src/build/config/ &&
printf "\n"
}
case $1 in
--raspi) copyRaspi;
esac
printf "${GRE}Done!\n" &&
printf "\n" &&
@ -149,6 +163,15 @@ printf "\n" &&
cat $HOME/thorium/logos/thorium_ascii_art.txt &&
# Display raspi ascii art
displayRaspi () {
cat $HOME/thorium/logos/raspi_ascii_art.txt
}
case $1 in
--raspi) displayRaspi;
esac
printf "${GRE}Enjoy Thorium!\n" &&
printf "\n" &&
tput sgr0