Skip to content

Commit 54f29fb

Browse files
Update build.sh
1 parent ce5d16d commit 54f29fb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

utils/scripts/build.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
app="paid"
44
mode="d"
55
fdroidFlag=""
6-
buildType="apk" # New default: apk or aar
6+
packageType="apk" # New default: apk or aar
77
webpackmode="development"
88
cordovamode=""
99

@@ -20,7 +20,7 @@ for arg in "$@"; do
2020
fdroidFlag="fdroid"
2121
;;
2222
"apk"|"bundle")
23-
buildType="$arg"
23+
packageType="$arg"
2424
;;
2525
*)
2626
echo "Warning: Unknown argument '$arg' ignored"
@@ -60,8 +60,8 @@ webpackmode="production"
6060
cordovamode="--release"
6161
fi
6262

63-
# Set build target based on buildType
64-
if [ "$buildType" = "bundle" ]; then
63+
# Set build target based on packageType
64+
if [ "$packageType" = "bundle" ]; then
6565
echo "Building AAR library file..."
6666
else
6767
echo "Building APK file..."
@@ -73,7 +73,10 @@ NC=''
7373
script1="node ./utils/config.js $mode $app"
7474
script2="webpack --progress --mode $webpackmode "
7575
# script3="node ./utils/loadStyles.js"
76-
script4="cordova build android $cordovamode -- --packageType=$buildType"
76+
77+
echo "type : $packageType"
78+
79+
script4="cordova build android $cordovamode -- --packageType=$packageType"
7780

7881
eval "
7982
echo \"${RED}$script1${NC}\";

0 commit comments

Comments
 (0)