Skip to content

Commit

Permalink
Rename main version to major version
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Jun 20, 2023
1 parent 9a4f25e commit bbc86e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ if [ -z ${OFFLINE+x} ]; then
# shellcheck disable=SC1090
source "$WSA_WORK_ENV" || abort
else
WSA_MAJOR_VER=$(python3 getWSAMainVersion.py "$ARCH" "$WSA_ZIP_PATH")
WSA_MAJOR_VER=$(python3 getWSAMajorVersion.py "$ARCH" "$WSA_ZIP_PATH")
fi
if [[ "$WSA_MAJOR_VER" -lt 2211 ]]; then
ANDROID_API=32
Expand Down Expand Up @@ -527,7 +527,7 @@ if [ -z ${OFFLINE+x} ]; then
exit 1
fi
else # Offline mode
WSA_MAJOR_VER=$(python3 getWSAMainVersion.py "$ARCH" "$WSA_ZIP_PATH")
WSA_MAJOR_VER=$(python3 getWSAMajorVersion.py "$ARCH" "$WSA_ZIP_PATH")
if [[ "$WSA_MAJOR_VER" -lt 2211 ]]; then
ANDROID_API=32
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
ver_no = zip_name.split("_")
long_ver = ver_no[1]
ver = long_ver.split(".")
main_ver = ver[0]
print(main_ver)
major_ver = ver[0]
print(major_ver)

0 comments on commit bbc86e1

Please sign in to comment.