|
|
@ -19,6 +19,7 @@ case "$TYPE" in
|
|
|
|
"android")
|
|
|
|
"android")
|
|
|
|
OPTIONS="$OPTIONS -- --packageType=apk"
|
|
|
|
OPTIONS="$OPTIONS -- --packageType=apk"
|
|
|
|
OUT_DIR="platforms/android/app/build/outputs/apk"
|
|
|
|
OUT_DIR="platforms/android/app/build/outputs/apk"
|
|
|
|
|
|
|
|
tree OUT_DIR || ls OUT_DIR
|
|
|
|
|
|
|
|
|
|
|
|
#install gradle
|
|
|
|
#install gradle
|
|
|
|
wget -q https://services.gradle.org/distributions/gradle-7.5.1-bin.zip -P /tmp
|
|
|
|
wget -q https://services.gradle.org/distributions/gradle-7.5.1-bin.zip -P /tmp
|
|
|
@ -46,6 +47,8 @@ cordova platform add "$TYPE"
|
|
|
|
cordova build "$TYPE" $OPTIONS
|
|
|
|
cordova build "$TYPE" $OPTIONS
|
|
|
|
echo "delivering outputs on server"
|
|
|
|
echo "delivering outputs on server"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree
|
|
|
|
|
|
|
|
|
|
|
|
#prepare ssh / scp commands
|
|
|
|
#prepare ssh / scp commands
|
|
|
|
curl https://codefirst.iut.uca.fr/git/Tactique-basket/Backend/raw/branch/dev/drone/prepare-deliver.sh > /tmp/prepare-deliver.sh
|
|
|
|
curl https://codefirst.iut.uca.fr/git/Tactique-basket/Backend/raw/branch/dev/drone/prepare-deliver.sh > /tmp/prepare-deliver.sh
|
|
|
|
source /tmp/prepare-deliver.sh
|
|
|
|
source /tmp/prepare-deliver.sh
|
|
|
@ -53,4 +56,4 @@ SERV_DIR="$DIR/application/$TYPE"
|
|
|
|
|
|
|
|
|
|
|
|
echo "making delivery onto '$USER@$IP:$SERV_DIR'"
|
|
|
|
echo "making delivery onto '$USER@$IP:$SERV_DIR'"
|
|
|
|
ls $OUT_DIR
|
|
|
|
ls $OUT_DIR
|
|
|
|
scp -o "StrictHostKeyChecking no" -r "$OUT_DIR/*" "$USER@$IP:$SERV_DIR"
|
|
|
|
scp -o "StrictHostKeyChecking no" -r "$OUT_DIR/" "$USER@$IP:$SERV_DIR"
|