[appveyor] upload build via ftp part 3

This commit is contained in:
odrling 2019-08-31 00:16:59 +02:00
parent 0953d23168
commit a958faea51
2 changed files with 4 additions and 7 deletions

View File

@ -1,11 +1,8 @@
#!/bin/sh
#!/bin/bash
dest="ftp://shelter.mahoro-net.org/aegisub-japan7"
tag=$(git describe --exact-match)
[ "$tag" ] || exit
curl -T 'packages\win_installer\output\Aegisub-Japan7-x64.exe' --user $FTP_USER:$FTP_PASS "$dest/Aegisub-Japan7-x64-${tag#v}.exe"
printf "${tag#v}\n$(git tag -l --format='%contents' $tag)" > latest
curl -T latest --user "$FTP_USER:$FTP_PASS" "$dest/"
curl -T <(printf "${tag#v}\n$(git tag -l --format='%contents' $tag)") --user "$FTP_USER:$FTP_PASS" "$dest/"

View File

@ -79,7 +79,7 @@ after_build:
- cd ..\..
on_success:
- bash.exe .ci\\upload_win_installer.sh
- sh: bash .ci/upload_win_installer.sh
artifacts:
- path: packages\win_installer\output\Aegisub-Japan7-x64.exe