mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-12-25 02:41:48 +01:00
fix: variable name
This commit is contained in:
parent
548bb674bd
commit
8e7c70ba89
22
.github/workflows/build.yaml
vendored
22
.github/workflows/build.yaml
vendored
@ -85,9 +85,9 @@ jobs:
|
||||
|
||||
RELEASE_TYPE="${opts[RELEASE_TYPE,${{ inputs.release_type }}]}"
|
||||
|
||||
if [ "${{inputs.magisk_ver }}" != "None" ]; then
|
||||
if [[ "${{ inputs.magisk_ver }}" != "None" ]]; then
|
||||
ROOT_SOL="magisk"
|
||||
if [ "${{ inputs.magisk_ver }}" != "Custom" ]; then
|
||||
if [[ "${{ inputs.magisk_ver }}" != "Custom" ]]; then
|
||||
MAGISK_VER="${opts[MAGISK_VER,${{ inputs.magisk_ver }}]}"
|
||||
else
|
||||
echo "${{ inputs.magisk_url }}" > "$DOWNLOAD_DIR"/"$DOWNLOAD_CONF_NAME"
|
||||
@ -104,23 +104,23 @@ jobs:
|
||||
MAGISK_VER="${opts[MAGISK_VER,Stable]}"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" == "x86_64" ]; then
|
||||
if [[ "${{ inputs.arch }}" == "x86_64" ]]; then
|
||||
GAPPS_VAR="${opts[GAPPS_VAR,${{ inputs.gapps_var }}]}"
|
||||
else
|
||||
# TODO: keep it 11.0 since official opengapps does not support 12+ yet
|
||||
# As soon as opengapps is available for 12+, we need to get the sdk/release from build.prop and download the corresponding version
|
||||
if [ "${{ inputs.gapps_var }}" == "Full" ]; then
|
||||
if [[ "${{ inputs.gapps_var }}" == "Full" ]]; then
|
||||
GAPPS_VAR="${opts[GAPPS_VAR,Pico]}"
|
||||
else
|
||||
GAPPS_VAR="${opts[GAPPS_VAR,${{ inputs.gapps_var }}]}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${{inputs.gapps_var }}" != "None" ]; then
|
||||
if [ "${{ inputs.gapps_var }}" != "Custom (MindTheGapps)" ]; then
|
||||
if [[ "${{ inputs.gapps_var }}" != "None" ]]; then
|
||||
if [[ "${{ inputs.gapps_var }}" != "Custom (MindTheGapps)" ]]; then
|
||||
GAPPS_BRAND="OpenGApps"
|
||||
if [ "${{ inputs.gapps_var }}" == "Custom (OpenGApps)" ]; then
|
||||
if [ -z "${${{ inputs.gapps_url }}+x}" ]; then
|
||||
if [[ "${{ inputs.gapps_var }}" == "Custom (OpenGApps)" ]]; then
|
||||
if [[ -z "${${{ inputs.gapps_url }}+x}" ]]; then
|
||||
GAPPS_VARIANT_MAP=(
|
||||
"super"
|
||||
"stock"
|
||||
@ -138,7 +138,7 @@ jobs:
|
||||
GAPPS_VAR=${GAPPS_VAR##*-}
|
||||
list_count=${#GAPPS_VARIANT_MAP[@]}
|
||||
for i in "${GAPPS_VARIANT_MAP[@]}"; do
|
||||
if [ "$GAPPS_VAR" == "$i" ]; then
|
||||
if [[ "$GAPPS_VAR" == "$i" ]]; then
|
||||
echo "INFO: GApps Variant: $GAPPS_VAR"
|
||||
valid_gapps_var="true"
|
||||
break
|
||||
@ -182,10 +182,10 @@ jobs:
|
||||
|
||||
REMOVE_AMAZON="${opts[REMOVE_AMAZON,${{ inputs.remove_amazon }}]}"
|
||||
|
||||
if [ "${{ inputs.gapps_var }}" == "Custom (OpenGApps)" ]; then
|
||||
if [[ "${{ inputs.gapps_var }}" == "Custom (OpenGApps)" ]]; then
|
||||
echo "Generate Download Links"
|
||||
python3 generateWSALinks.py "$ARCH" "$RELEASE_TYPE" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME"
|
||||
if [ "${{ inputs.magisk_ver }}" != "Custom" ]; then
|
||||
if [[ "${{ inputs.magisk_ver }}" != "Custom" ]]; then
|
||||
python3 generateMagiskLink.py "$MAGISK_VER" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user