Update build_win.sh

This commit is contained in:
Alexander David Frick 2022-06-04 22:36:13 -07:00 committed by GitHub
parent e2fe4ee276
commit 9cee2c36e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,17 @@
# Copyright (c) 2022 Alex313031.
YEL='\033[1;33m' # Yellow
GRE='\033[1;32m' # Green
c0=$'\033[0m' # Reset Text
bold=$'\033[1m' # Bold Text
underline=$'\033[4m' # Underline Text
# Error handling
yell() { echo "$0: $*" >&2; }
die() { yell "$*"; exit 111; }
try() { "$@" || die "Failed $*"; }
# --help
displayHelp () {
printf "\n" &&
printf "${bold}${YEL}Script to build Thorium for Windows on Linux.${c0}\n" &&
@ -20,9 +27,11 @@ esac
printf "\n" &&
printf "${YEL}Building Thorium for Windows...\n" &&
printf "\n" &&
tput sgr0 &&
printf "${GRE}\n" &&
# Build Thorium
export NINJA_SUMMARIZE_BUILD=1 &&
./infra/autoninja -C ~/chromium/src/out/thorium chrome chromedriver thorium_shell setup mini_installer -j$@
tput sgr0