mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
898 B
45 lines
898 B
#!/bin/bash |
|
|
|
# Copyright (c) 2013-2020, The PurpleI2P Project |
|
# |
|
# This file is part of Purple i2pd project and licensed under BSD3 |
|
# |
|
# See full license text in LICENSE file at top of project tree |
|
|
|
GITDESC=$(git describe --tags) |
|
|
|
declare -A ABILIST=( |
|
["armeabi-v7a"]="armv7l" |
|
["arm64-v8a"]="aarch64" |
|
["x86"]="x86" |
|
["x86_64"]="x86_64" |
|
) |
|
|
|
# Remove old files and archives |
|
if [ -d archive ]; then |
|
rm -r archive |
|
fi |
|
|
|
if [ -f i2pd_*_android_binary.zip ]; then |
|
rm i2pd_*_android_binary.zip |
|
fi |
|
|
|
# Prepare files for package |
|
mkdir archive |
|
|
|
for ABI in "${!ABILIST[@]}"; do |
|
if [ -f ../../android_binary_only/libs/${ABI}/i2pd ]; then |
|
cp ../../android_binary_only/libs/${ABI}/i2pd archive/i2pd-${ABILIST[$ABI]} |
|
fi |
|
done |
|
|
|
cp i2pd archive/i2pd |
|
cp -rH ../../android/assets/* archive/ |
|
|
|
# Compress files |
|
cd archive |
|
zip -r6 ../i2pd_${GITDESC}_android_binary.zip . |
|
|
|
# Remove temporary folder |
|
cd .. |
|
rm -r archive
|
|
|