mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-08 10:47:44 -03:00
use nproc in package.sh
This commit is contained in:
parent
3baba68c8a
commit
a4a4c76cc1
2 changed files with 1 additions and 3 deletions
|
@ -19,7 +19,6 @@ try() { "$@" || die "${RED}Failed $*"; }
|
|||
displayHelp () {
|
||||
printf "\n" &&
|
||||
printf "${bold}${GRE}Script to build Thorium .deb and .rpm packages on Linux.${c0}\n" &&
|
||||
printf "${underline}${YEL}Usage: ${c0}package.sh # (where # is number of jobs)\n" &&
|
||||
printf "\n"
|
||||
}
|
||||
case $1 in
|
||||
|
@ -45,7 +44,7 @@ export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
|
|||
|
||||
cd ${CR_SRC_DIR} &&
|
||||
|
||||
autoninja -C out/thorium "chrome/installer/linux:stable_deb" "chrome/installer/linux:stable_rpm" -j$@ &&
|
||||
autoninja -C out/thorium "chrome/installer/linux:stable_deb" "chrome/installer/linux:stable_rpm" -j $(nproc) &&
|
||||
|
||||
printf "${GRE}Done! ${YEL}Installers at \'//out/thorium/thorium*.deb\' and \'//out/thorium/thorium*.rpm\'\n" &&
|
||||
tput sgr0
|
||||
|
|
1
setup.sh
1
setup.sh
|
@ -79,7 +79,6 @@ patchFFMPEG () {
|
|||
cd ${CR_SRC_DIR} &&
|
||||
git apply --reject ./Fix-policy-templates.patch
|
||||
}
|
||||
|
||||
[ -f ${CR_SRC_DIR}/third_party/ffmpeg/add-hevc-ffmpeg-decoder-parser.patch ] || patchFFMPEG;
|
||||
|
||||
cd ~/thorium &&
|
||||
|
|
Loading…
Reference in a new issue