@@ -535,6 +535,11 @@ build_chromium() {
535
535
# reset any modifications
536
536
git checkout -- .
537
537
538
+ # apply required patches
539
+ if [ -n " $( ls -A ${AOSP_BUILD_DIR} /external/chromium/patches) " ]; then
540
+ git am --whitespace=nowarn ${AOSP_BUILD_DIR} /external/chromium/patches/* .patch
541
+ fi
542
+
538
543
# generate configuration
539
544
KEYSTORE=" ${KEYS_DIR} /${DEVICE} /chromium.keystore"
540
545
trichrome_certdigest=$( keytool -export-cert -alias chromium -keystore " ${KEYSTORE} " -storepass chromium | sha256sum | awk ' {print $1}' )
@@ -555,22 +560,16 @@ EOF
555
560
run_hook_if_exists " build_chromium_pre"
556
561
557
562
log " Building trichrome"
558
- autoninja -C out/Default/ trichrome_webview_apk trichrome_chrome_bundle trichrome_library_apk
563
+ autoninja -C out/Default/ trichrome_webview_64_32_apk trichrome_chrome_64_32_apk trichrome_library_64_32_apk
559
564
560
565
log " Signing trichrome"
561
- BUNDLETOOL=" ${CHROMIUM_BUILD_DIR} /src/build/android/gyp/bundletool.py"
562
- AAPT2=" ${CHROMIUM_BUILD_DIR} /src/third_party/android_build_tools/aapt2/aapt2"
563
566
APKSIGNER=" ${CHROMIUM_BUILD_DIR} /src/third_party/android_sdk/public/build-tools/30.0.1/apksigner"
564
567
cd out/Default/apks
565
568
rm -rf release
566
569
mkdir release
567
570
cd release
568
- " ${BUNDLETOOL} " build-apks --aapt2 " ${AAPT2} " --bundle " ../TrichromeChrome.aab" --output " TrichromeChrome.apks" \
569
- --mode=universal --ks " ${KEYSTORE} " --ks-pass pass:chromium --ks-key-alias chromium
570
- unzip " TrichromeChrome.apks" " universal.apk"
571
- mv " universal.apk" " TrichromeChrome.apk"
572
- for app in TrichromeLibrary TrichromeWebView; do
573
- " ${APKSIGNER} " sign --ks " ${KEYSTORE} " --ks-pass pass:chromium --ks-key-alias chromium --in " ../${app} .apk" --out " ${app} .apk"
571
+ for app in TrichromeChrome TrichromeLibrary TrichromeWebView; do
572
+ " ${APKSIGNER} " sign --ks " ${KEYSTORE} " --ks-pass pass:chromium --ks-key-alias chromium --in " ../${app} 6432.apk" --out " ${app} .apk"
574
573
done
575
574
576
575
log " Uploading trichrome apks"
0 commit comments