Skip to content

Commit

Permalink
build: optimize install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Mar 18, 2021
1 parent bdaf5d4 commit c0e1613
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@ if [ ! -f $temp/$zipName"$version".zip ]; then
fi

echo "start unzip SDK..."
unzip -o -q $temp/$zipName"$version".zip -d $temp/$zipName"$version"
unzip -o -q "**/*_Dynamic.zip" -d $temp/$zipName"$version"
if [ $? -ne 0 ]; then
echo "unzip SDK failed, retry..."
unzip -o -q $temp/$zipName"$version".zip "**/ALL_ARCHITECTURE/*" -d $temp/$zipName"$version"
else
echo "unzip SDK success, start unzip dynamic framework..."
for zip in $(find $temp/$zipName"$version" -maxdepth 5 -iname '*_Dynamic.zip'); do
unzip -o -q "$zip" "**/ALL_ARCHITECTURE/*" -d $temp/$zipName"$version"
done
fi
unzip -o -q $temp/$zipName"$version".zip "**/libs/*" -d $temp/$zipName"$version"

echo "start transfer dynamic framework to $libs..."
rm -rf $libs
Expand Down

0 comments on commit c0e1613

Please sign in to comment.