Uploading the languages to the app store nightlies

This commit is contained in:
Maschell 2017-05-13 13:32:46 +02:00
parent f5a4bf3f2f
commit 7ac389a738

View File

@ -8,7 +8,10 @@ for entry in "$TRAVIS_BUILD_DIR/wiiu/apps/hidtovpad"/*; do
curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/${entry##*/}" > /dev/null 2>&1 curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/${entry##*/}" > /dev/null 2>&1
done done
IFS=$'\n' # make newlines the only separator IFS=$'\n' # make newlines the only separator
# controller configs
for f in `curl -u $FTP_USER:$FTP_PASSWORD $FTP_SERVER/sd/wiiu/controller/ --silent --use-ascii --list-only`; do for f in `curl -u $FTP_USER:$FTP_PASSWORD $FTP_SERVER/sd/wiiu/controller/ --silent --use-ascii --list-only`; do
if [ "$f" != "." ] && [ "$f" != ".." ]; then if [ "$f" != "." ] && [ "$f" != ".." ]; then
echo "Deleting sd/wiiu/controller/${f##*/}" echo "Deleting sd/wiiu/controller/${f##*/}"
@ -21,9 +24,27 @@ cd $TRAVIS_BUILD_DIR/wiiu/controller
for entry in "$TRAVIS_BUILD_DIR/wiiu/controller"/* for entry in "$TRAVIS_BUILD_DIR/wiiu/controller"/*
do do
echo "Uploading ${entry##*/}" echo "Uploading ${entry##*/}"
curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/sd/wiiu/controller/${entry##*/}" > /dev/null 2>&1 curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/sd/wiiu/apps/hidtovpad/languages/${entry##*/}" > /dev/null 2>&1
done done
# Language files
for f in `curl -u $FTP_USER:$FTP_PASSWORD $FTP_SERVER/sd/wiiu/controller/ --silent --use-ascii --list-only`; do
if [ "$f" != "." ] && [ "$f" != ".." ]; then
echo "Deleting sd/wiiu/apps/hidtovpad/languages/${f##*/}"
curl -v -u $FTP_USER:$FTP_PASSWORD ftp://$FTP_SERVER/ -Q "DELE sd/wiiu/apps/hidtovpad/languages/$f" --silent > /dev/null 2>&1
fi
done
cd $TRAVIS_BUILD_DIR/languages
for entry in "$TRAVIS_BUILD_DIR/languages"/*
do
echo "Uploading ${entry##*/}"
curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/sd/wiiu/apps/hidtovpad/languages/${entry##*/}" > /dev/null 2>&1
done
curl -v -u $FTP_USER:$FTP_PASSWORD ftp://$FTP_SERVER/ -Q "DELE .deletetoupdate" --silent > /dev/null 2>&1 curl -v -u $FTP_USER:$FTP_PASSWORD ftp://$FTP_SERVER/ -Q "DELE .deletetoupdate" --silent > /dev/null 2>&1
curl $REFRESH curl $REFRESH