Merge pull request #68 from someone5678/main

This commit is contained in:
Howard Wu 2022-09-03 22:59:20 +08:00 committed by GitHub
commit dfea8d88dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -102,7 +102,7 @@ usage(){
--arch Architecture of WSA, x64 or arm64, default: $ARCH
--release-type Release type of WSA, retail, RP (Release Preview), WIS (Insider Slow) or WIF (Insider Fast), default: $RELEASE_TYPE
--magisk-ver Magisk version, stable or canary, default: $MAGISK_VER
--gapps-brand GApps brand, OpenGApps or MindTheGApps, default: $GAPPS_BRAND
--gapps-brand GApps brand, OpenGApps or MindTheGapps, default: $GAPPS_BRAND
--gapps-variant GApps variant, pico or full, etc...., default: $GAPPS_VARIANT
--root-sol Root solution, magisk or none, default: $ROOT_SOL
--remove-amazon Remove Amazon Appstore from the system, default: false
@ -183,7 +183,7 @@ MAGISK_VER_MAP=(
GAPPS_BRAND_MAP=(
"OpenGApps"
"MindTheGApps"
"MindTheGapps"
"none"
)
@ -198,6 +198,7 @@ GAPPS_VARIANT_MAP=(
"tvstock"
"tvmini"
"none"
"MindTheGapps"
)
ROOT_SOL_MAP=(
@ -382,6 +383,9 @@ if [ -d "$WORK_DIR"/gapps ]; then
if [ -d "$WORK_DIR"/gapps/system_ext ]; then
SYSTEM_SIZE=$(( SYSTEM_SIZE - $(du --apparent-size -sB512 "$WORK_DIR"/gapps/system_ext | cut -f1) ))
fi
if [ -d "$WORK_DIR"/gapps/product ]; then
PRODUCT_SIZE=$(( PRODUCT_SIZE - $(du --apparent-size -sB512 "$WORK_DIR"/gapps/product | cut -f1) ))
fi
fi
if [ -d "$WORK_DIR"/magisk ]; then
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "$WORK_DIR"/magisk/magisk | cut -f1) ))

View File

@ -21,6 +21,8 @@
# DEBUG=--debug
# CUSTOM_MAGISK=--magisk-custom
DOWNLOAD_DIR=../download
if [ ! "$BASH_VERSION" ] ; then
echo "Please do not use sh to run this script, just execute it directly" 1>&2
exit 1