Skip to content

Commit fab00b9

Browse files
committed
replace scripts
1 parent 197e305 commit fab00b9

File tree

4 files changed

+52
-106
lines changed

4 files changed

+52
-106
lines changed

build_askar_android.sh

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

build_askar_android_dos.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

build_askar_android_unix.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

build_askar_linux.sh

100644100755
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
RELEASE=v0.3.2
2-
ASSET_NAME=library-linux-x86_64.tar.gz
3-
ASKAR_URL="https://github.com/openwallet-foundation/askar/releases/download/$RELEASE/$ASSET_NAME"
4-
TARGET_DIR="linux/lib"
5-
6-
# Create the target directory if it doesn't exist
7-
mkdir -p "$TARGET_DIR"
8-
9-
# Download the tar.gz file
10-
echo "Downloading $ASKAR_URL..."
11-
curl -L "$ASKAR_URL" -o "$TARGET_DIR/$ASSET_NAME"
12-
13-
# Extract the contents
14-
echo "Extracting contents..."
15-
tar -xzf "$TARGET_DIR/$ASSET_NAME" -C $TARGET_DIR
16-
17-
# Clean up the downloaded tar.gz file
18-
rm -rf $TEMP_DIR
19-
rm "$TARGET_DIR/$ASSET_NAME"
20-
21-
# Copy library to example
22-
echo "Copying from $TARGET_DIR to example/$TARGET_DIR"
23-
cp -r "$TARGET_DIR/" "example/linux/"
24-
1+
RELEASE=v0.3.2
2+
ASSET_NAME=library-linux-x86_64.tar.gz
3+
ASKAR_URL="https://github.com/openwallet-foundation/askar/releases/download/$RELEASE/$ASSET_NAME"
4+
TARGET_DIR="linux/lib"
5+
6+
# Create the target directory if it doesn't exist
7+
mkdir -p "$TARGET_DIR"
8+
9+
# Download the tar.gz file
10+
echo "Downloading $ASKAR_URL..."
11+
curl -L "$ASKAR_URL" -o "$TARGET_DIR/$ASSET_NAME"
12+
13+
# Extract the contents
14+
echo "Extracting contents..."
15+
tar -xzf "$TARGET_DIR/$ASSET_NAME" -C $TARGET_DIR
16+
17+
# Clean up the downloaded tar.gz file
18+
rm -rf $TEMP_DIR
19+
rm "$TARGET_DIR/$ASSET_NAME"
20+
21+
# Copy library to example
22+
echo "Copying from $TARGET_DIR to example/$TARGET_DIR"
23+
cp -r "$TARGET_DIR/" "example/linux/"
24+
2525
echo "Done!"

0 commit comments

Comments
 (0)