You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
733 B
36 lines
733 B
#!/bin/sh
|
|
set -e
|
|
|
|
dir=bromite
|
|
version=96.0.4664.54
|
|
|
|
rm -rf "$dir"
|
|
mkdir -p "$dir"
|
|
|
|
cat > "$dir/module.prop" << EOF
|
|
id=bromite
|
|
name=Bromite SystemWebView
|
|
version=$version
|
|
versionCode=1
|
|
author=me
|
|
description=
|
|
EOF
|
|
|
|
cat > "$dir/customize.sh" << EOF
|
|
REPLACE="
|
|
/system/product/app/webview
|
|
"
|
|
EOF
|
|
|
|
install -D apk/arm64_SystemWebView-$version.apk \
|
|
"$dir/system/app/webview/webview.apk"
|
|
|
|
unzip -d "$dir" apk/arm64_SystemWebView-$version.apk 'lib/*'
|
|
install -D "$dir/lib/armeabi-v7a/libwebviewchromium.so" \
|
|
"$dir/system/app/webview/lib/arm/libwebviewchromium.so"
|
|
install -D "$dir/lib/arm64-v8a/libwebviewchromium.so" \
|
|
"$dir/system/app/webview/lib/arm64/libwebviewchromium.so"
|
|
rm -rf "$dir/lib"
|
|
|
|
./package.sh "$dir"
|
|
rm -rf "$dir"
|
|
|