Skip to content

Commit 9ef35c1

Browse files
committed
fix: build_askar_android.sh to run linux
1 parent 441dd40 commit 9ef35c1

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

build_askar_android.sh

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# Define the URL and the target directory
2-
ASKAR_URL="https://github.com/openwallet-foundation/askar/releases/download/v0.3.2/library-ios-android.tar.gz"
3-
TARGET_DIR="android/app/src/main/jniLibs"
4-
5-
# Create the target directory if it doesn't exist
6-
mkdir -p $TARGET_DIR
7-
8-
# Download the tar.gz file
9-
echo "Downloading $ASKAR_URL..."
10-
curl -L "$ASKAR_URL" -o "$TARGET_DIR/library-ios-android.tar.gz"
11-
12-
# Extract the contents to a temporary directory
13-
TEMP_DIR=$(mktemp -d)
14-
echo "Extracting contents..."
15-
tar -xzf "$TARGET_DIR/library-ios-android.tar.gz" -C $TEMP_DIR
16-
17-
# Move the mobile/android directory to the target directory
18-
echo "Moving mobile/android to $TARGET_DIR..."
19-
mv $TEMP_DIR/mobile/android/* $TARGET_DIR
20-
21-
# Clean up the temporary directory and the downloaded tar.gz file
22-
rm -rf $TEMP_DIR
23-
rm "$TARGET_DIR/library-ios-android.tar.gz"
24-
1+
# Define the URL and the target directory
2+
ASKAR_URL="https://github.com/openwallet-foundation/askar/releases/download/v0.3.2/library-ios-android.tar.gz"
3+
TARGET_DIR="android/app/src/main/jniLibs"
4+
5+
# Create the target directory if it doesn't exist
6+
mkdir -p $TARGET_DIR
7+
8+
# Download the tar.gz file
9+
echo "Downloading $ASKAR_URL..."
10+
curl -L "$ASKAR_URL" -o "$TARGET_DIR/library-ios-android.tar.gz"
11+
12+
# Extract the contents to a temporary directory
13+
TEMP_DIR=$(mktemp -d)
14+
echo "Extracting contents..."
15+
tar -xzf "$TARGET_DIR/library-ios-android.tar.gz" -C $TEMP_DIR
16+
17+
# Move the mobile/android directory to the target directory
18+
echo "Moving mobile/android to $TARGET_DIR..."
19+
mv $TEMP_DIR/mobile/android/* $TARGET_DIR
20+
21+
# Clean up the temporary directory and the downloaded tar.gz file
22+
rm -rf $TEMP_DIR
23+
rm "$TARGET_DIR/library-ios-android.tar.gz"
24+
2525
echo "Done!"

0 commit comments

Comments
 (0)