export android src as well

This commit is contained in:
Ivan Smolin 2019-06-14 11:41:53 +03:00
parent d240fc3a2a
commit f50c1fef04
1 changed files with 17 additions and 6 deletions

View File

@ -1,12 +1,23 @@
#!/bin/sh
PROJECT_DIR=$1
PLATFORM=$2
PROJECT_NAME=$1
SRC_FOLDER_NAME=${PROJECT_NAME}-src-$(date +%F)
SRC_DIR=/tmp/${SRC_FOLDER_NAME}
clone_platform() {
PROJECT_DIR=$1
PLATFORM=$2
git clone --recurse-submodules -j8 git@github.com:TouchInstinct/${PROJECT_DIR}-${PLATFORM}.git --branch master
}
mkdir -p ${SRC_DIR}
cd ${SRC_DIR}
clone_platform ${PROJECT_NAME} ios
clone_platform ${PROJECT_NAME} android
cd /tmp/
git clone --recurse-submodules -j8 git@github.com:TouchInstinct/${PROJECT_DIR}-${PLATFORM}.git --branch develop
cd ${PROJECT_DIR}-${PLATFORM}
find . -name ".git*" -print0 | xargs -0 rm -rf
zip -r ${PROJECT_DIR}-${PLATFORM}-src-$(date +%F).zip .
zip -r ${SRC_FOLDER_NAME}.zip .
open .