another.im-ios/scripts/uploadAlpha.sh

22 lines
674 B
Bash
Raw Permalink Normal View History

2024-11-18 14:53:52 +00:00
#!/bin/sh
function sftp_upload {
sftp ${1} <<EOF
put build/ipa/${APP_NAME}.ipa /var/www/downloads.monal-im.org/monal-im/alpha/iOS/
put build/app/${APP_NAME}.tar /var/www/downloads.monal-im.org/monal-im/alpha/macOS/
put ../changes.txt /var/www/downloads.monal-im.org/monal-im/alpha/iOS/
quit
EOF
}
cd Monal
touch ../changes.txt
ls -l build/ipa/$APP_NAME.ipa
ls -l build/app/$APP_NAME.tar
sftp_upload downloads.monal-im.org@s1.eu.prod.push.monal-im.org &
pid=$!
sftp_upload downloads.monal-im.org@s2.eu.prod.push.monal-im.org
wait $pid
curl -X POST -F "changes=@../changes.txt" -H "X-Secret: $ALPHA_UPLOAD_SECRET" https://www.eightysoft.de/monal/upload.php