mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-13 07:05:10 +01:00
Add skip download wsa (#287)
This commit is contained in:
parent
c86cd29e33
commit
67682f8ca5
@ -217,6 +217,7 @@ Additional Options:
|
|||||||
--compress Compress the WSA, The default format is 7z, you can use the format specified by --compress-format
|
--compress Compress the WSA, The default format is 7z, you can use the format specified by --compress-format
|
||||||
--offline Build WSA offline
|
--offline Build WSA offline
|
||||||
--magisk-custom Install custom Magisk
|
--magisk-custom Install custom Magisk
|
||||||
|
--skip-download-wsa Skip download WSA
|
||||||
--debug Debug build mode
|
--debug Debug build mode
|
||||||
--help Show this help message and exit
|
--help Show this help message and exit
|
||||||
--nofix-props No fix \"build.prop\"
|
--nofix-props No fix \"build.prop\"
|
||||||
@ -247,6 +248,7 @@ ARGUMENT_LIST=(
|
|||||||
"magisk-custom"
|
"magisk-custom"
|
||||||
"debug"
|
"debug"
|
||||||
"help"
|
"help"
|
||||||
|
"skip-download-wsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
default
|
default
|
||||||
@ -275,6 +277,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
--magisk-custom ) CUSTOM_MAGISK="debug"; shift ;;
|
--magisk-custom ) CUSTOM_MAGISK="debug"; shift ;;
|
||||||
--magisk-ver ) MAGISK_VER="$2"; shift 2 ;;
|
--magisk-ver ) MAGISK_VER="$2"; shift 2 ;;
|
||||||
--debug ) DEBUG="on"; shift ;;
|
--debug ) DEBUG="on"; shift ;;
|
||||||
|
--skip-download-wsa ) DOWN_WSA="no"; shift ;;
|
||||||
--help ) usage; exit 0 ;;
|
--help ) usage; exit 0 ;;
|
||||||
-- ) shift; break;;
|
-- ) shift; break;;
|
||||||
esac
|
esac
|
||||||
@ -364,10 +367,14 @@ update_gapps_zip_name
|
|||||||
if [ -z "${OFFLINE+x}" ]; then
|
if [ -z "${OFFLINE+x}" ]; then
|
||||||
trap 'rm -f -- "${DOWNLOAD_DIR:?}/${DOWNLOAD_CONF_NAME}"' EXIT
|
trap 'rm -f -- "${DOWNLOAD_DIR:?}/${DOWNLOAD_CONF_NAME}"' EXIT
|
||||||
require_su
|
require_su
|
||||||
|
if [ "${DOWN_WSA}" != "no" ]; then
|
||||||
echo "Generate Download Links"
|
echo "Generate Download Links"
|
||||||
python3 generateWSALinks.py "$ARCH" "$RELEASE_TYPE" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
python3 generateWSALinks.py "$ARCH" "$RELEASE_TYPE" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source "${WORK_DIR:?}/ENV" || abort
|
source "${WORK_DIR:?}/ENV" || abort
|
||||||
|
else
|
||||||
|
DOWN_WSA_MAIN_VERSION=2211
|
||||||
|
fi
|
||||||
if [[ "$DOWN_WSA_MAIN_VERSION" -ge 2211 ]]; then
|
if [[ "$DOWN_WSA_MAIN_VERSION" -ge 2211 ]]; then
|
||||||
ANDROID_API=33
|
ANDROID_API=33
|
||||||
update_gapps_zip_name
|
update_gapps_zip_name
|
||||||
|
Loading…
Reference in New Issue
Block a user